fix: Do not throw global error if just one collector failed
This commit is contained in:
parent
1dea032365
commit
2656afd9a5
|
@ -354,7 +354,7 @@ func (c *collector) connectAndCollect(d *config.Device, ch chan<- prometheus.Met
|
||||||
ctx := &collectorContext{ch, d, cl}
|
ctx := &collectorContext{ch, d, cl}
|
||||||
err = co.collect(ctx)
|
err = co.collect(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
log.Error("error collecting metrics")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue