ZFS Collector: Add zfetchstats functionality
Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
This commit is contained in:
parent
2a0c80cbe2
commit
a3125ab4d9
5 changed files with 112 additions and 11 deletions
|
|
@ -35,6 +35,7 @@ type zfsSubsystemName string
|
|||
|
||||
const (
|
||||
arc = zfsSubsystemName("zfsArc")
|
||||
zfetch = zfsSubsystemName("zfsFetch")
|
||||
zpoolSubsystem = zfsSubsystemName("zfsPool")
|
||||
)
|
||||
|
||||
|
|
@ -71,6 +72,10 @@ func (c *zfsCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
|||
return err
|
||||
}
|
||||
|
||||
// Zfetchstats
|
||||
err = c.updateZfetchstats(ch)
|
||||
if err != nil { return err }
|
||||
|
||||
// Pool stats
|
||||
return c.updatePoolStats(ch)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue