Export a counter of firehose connection errors

This commit is contained in:
Max Ignatenko 2024-04-06 21:55:36 +01:00
parent ff0ea08296
commit 1358bc3f08
2 changed files with 6 additions and 0 deletions

View file

@ -97,6 +97,7 @@ func (c *Consumer) run(ctx context.Context) {
default:
if err := c.runOnce(ctx); err != nil {
log.Error().Err(err).Msgf("Consumer of %q failed (will be restarted): %s", c.remote.Host, err)
connectionFailures.WithLabelValues(c.remote.Host).Inc()
}
time.Sleep(time.Second)
}