fix: Do not throw global error if just one collector failed

This commit is contained in:
Evgenii Lepikhin 2024-01-14 14:39:27 +03:00
parent 1dea032365
commit 2656afd9a5
No known key found for this signature in database
GPG Key ID: 2B6646C3E85F571F
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ func (c *collector) connectAndCollect(d *config.Device, ch chan<- prometheus.Met
ctx := &collectorContext{ch, d, cl}
err = co.collect(ctx)
if err != nil {
return err
log.Error("error collecting metrics")
}
}