Browse Source

Make ZFS collector fail gracefully when not available

pull/419/head
Matt Layher 8 years ago
parent
commit
1e1775e761
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94
  1. 4
      collector/zfs.go

4
collector/zfs.go

@ -63,10 +63,6 @@ func NewZFSCollector() (Collector, error) {
func (c *zfsCollector) Update(ch chan<- prometheus.Metric) (err error) {
// Arcstats
err = c.updateArcstats(ch)
if err != nil {
return err
}
switch {
case err == zfsNotAvailableError:
log.Debug(err)

Loading…
Cancel
Save