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