diff options
author | Joe Handzik <joseph.t.handzik@hpe.com> | 2017-01-23 12:45:36 -0600 |
---|---|---|
committer | Joe Handzik <joseph.t.handzik@hpe.com> | 2017-01-23 16:31:22 -0600 |
commit | 07c7ae733ad533d6b354fadb58bea03a647e0688 (patch) | |
tree | 6abe83919754bf63a981d69e5df246f720e77be2 /collector/zfs.go | |
parent | 05048c067d6116d4d7acc0b9f276fdc64caf13b3 (diff) | |
download | prometheus_node_collector-07c7ae733ad533d6b354fadb58bea03a647e0688.tar.bz2 prometheus_node_collector-07c7ae733ad533d6b354fadb58bea03a647e0688.tar.xz prometheus_node_collector-07c7ae733ad533d6b354fadb58bea03a647e0688.zip |
ZFS Collector: Add fm functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
Diffstat (limited to 'collector/zfs.go')
-rw-r--r-- | collector/zfs.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/collector/zfs.go b/collector/zfs.go index e794090..138ab11 100644 --- a/collector/zfs.go +++ b/collector/zfs.go | |||
@@ -35,6 +35,7 @@ type zfsSubsystemName string | |||
35 | 35 | ||
36 | const ( | 36 | const ( |
37 | arc = zfsSubsystemName("zfsArc") | 37 | arc = zfsSubsystemName("zfsArc") |
38 | fm = zfsSubsystemName("zfsFm") | ||
38 | vdevCache = zfsSubsystemName("zfsVdevCache") | 39 | vdevCache = zfsSubsystemName("zfsVdevCache") |
39 | xuio = zfsSubsystemName("zfsXuio") | 40 | xuio = zfsSubsystemName("zfsXuio") |
40 | zfetch = zfsSubsystemName("zfsFetch") | 41 | zfetch = zfsSubsystemName("zfsFetch") |
@@ -91,6 +92,10 @@ func (c *zfsCollector) Update(ch chan<- prometheus.Metric) (err error) { | |||
91 | err = c.updateXuioStats(ch) | 92 | err = c.updateXuioStats(ch) |
92 | if err != nil { return err } | 93 | if err != nil { return err } |
93 | 94 | ||
95 | // Fm | ||
96 | err = c.updateFm(ch) | ||
97 | if err != nil { return err } | ||
98 | |||
94 | // Pool stats | 99 | // Pool stats |
95 | return c.updatePoolStats(ch) | 100 | return c.updatePoolStats(ch) |
96 | } | 101 | } |