From 1e1775e76171848650b6d7b61f067173431224c1 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Thu, 12 Jan 2017 12:54:16 -0500 Subject: [PATCH] Make ZFS collector fail gracefully when not available --- collector/zfs.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/collector/zfs.go b/collector/zfs.go index b9c19536..2b3fa415 100644 --- a/collector/zfs.go +++ b/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)