ZFS Collector: Add xuio_stats functionality

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
This commit is contained in:
Joe Handzik 2017-01-23 12:33:35 -06:00
commit 05048c067d
5 changed files with 80 additions and 0 deletions

View file

@ -36,6 +36,7 @@ type zfsSubsystemName string
const (
arc = zfsSubsystemName("zfsArc")
vdevCache = zfsSubsystemName("zfsVdevCache")
xuio = zfsSubsystemName("zfsXuio")
zfetch = zfsSubsystemName("zfsFetch")
zil = zfsSubsystemName("zfsZil")
zpoolSubsystem = zfsSubsystemName("zfsPool")
@ -86,6 +87,10 @@ func (c *zfsCollector) Update(ch chan<- prometheus.Metric) (err error) {
err = c.updateVdevCacheStats(ch)
if err != nil { return err }
// XuioStats
err = c.updateXuioStats(ch)
if err != nil { return err }
// Pool stats
return c.updatePoolStats(ch)
}