Make ZFS collector fail gracefully when not available

This commit is contained in:
Matt Layher 2017-01-12 12:54:16 -05:00
parent 2884181cce
commit 1e1775e761
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94
1 changed files with 0 additions and 4 deletions

View File

@ -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)