ZFS Collector: Add vdev_cache_stats functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
This commit is contained in:
parent
a02ca9502c
commit
3c9e779989
5 changed files with 72 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue