ZFS Collector: Add vdev_cache_stats functionality

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
This commit is contained in:
Joe Handzik 2017-01-23 12:19:51 -06:00
commit 3c9e779989
5 changed files with 72 additions and 4 deletions

View file

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