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