diff --git a/inputs/prometheus/consul.go b/inputs/prometheus/consul.go index 981bdf46..dbda0f78 100644 --- a/inputs/prometheus/consul.go +++ b/inputs/prometheus/consul.go @@ -185,6 +185,8 @@ func (ins *Instance) UrlsFromConsul(ctx context.Context) ([]ScrapeUrl, error) { refreshFailed = false log.Println("Successfully refreshed Consul services after previous errors") } + default: + return } } }()