ZFS Collector: Add zil functionality

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

View file

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