ZFS Collector: Add fm functionality

Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
This commit is contained in:
Joe Handzik 2017-01-23 12:45:36 -06:00
commit 07c7ae733a
5 changed files with 72 additions and 0 deletions

View file

@ -35,6 +35,7 @@ type zfsSubsystemName string
const (
arc = zfsSubsystemName("zfsArc")
fm = zfsSubsystemName("zfsFm")
vdevCache = zfsSubsystemName("zfsVdevCache")
xuio = zfsSubsystemName("zfsXuio")
zfetch = zfsSubsystemName("zfsFetch")
@ -91,6 +92,10 @@ func (c *zfsCollector) Update(ch chan<- prometheus.Metric) (err error) {
err = c.updateXuioStats(ch)
if err != nil { return err }
// Fm
err = c.updateFm(ch)
if err != nil { return err }
// Pool stats
return c.updatePoolStats(ch)
}