ZFS Collector: Add zfetchstats functionality

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
This commit is contained in:
Joe Handzik 2017-01-23 10:39:32 -06:00
commit a3125ab4d9
5 changed files with 112 additions and 11 deletions

View file

@ -35,6 +35,7 @@ type zfsSubsystemName string
const (
arc = zfsSubsystemName("zfsArc")
zfetch = zfsSubsystemName("zfsFetch")
zpoolSubsystem = zfsSubsystemName("zfsPool")
)
@ -71,6 +72,10 @@ func (c *zfsCollector) Update(ch chan<- prometheus.Metric) (err error) {
return err
}
// Zfetchstats
err = c.updateZfetchstats(ch)
if err != nil { return err }
// Pool stats
return c.updatePoolStats(ch)
}