Make ZFS collector fail gracefully when not available
This commit is contained in:
parent
2884181cce
commit
1e1775e761
|
@ -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…
Reference in New Issue