Skip to content

Commit

Permalink
fix: endpoint automatically discovered through Consul is not effective
Browse files Browse the repository at this point in the history
  • Loading branch information
Meepoljdx authored and Meepoljdx committed Sep 3, 2024
1 parent 452a183 commit 02670cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inputs/prometheus/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}()
Expand Down

0 comments on commit 02670cc

Please sign in to comment.