-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prometheus.operator.podmonitors with clustering mode scrapes duplicated targets #2348
Comments
looking at the code.
It seems we take the targets if the cluster finds no peers or if an error is returned. When I checked the debug log, I saw that Alloy discovered 4 peers. I really appreciate your help, and thank you in advance for your guidance! Debug log:
|
What's wrong?
When using
prometheus.operator.podmonitors
in clustering mode, the same targets are distributed to multiple Alloy instances, causing the same metrics to be scraped by more than one instance. This results in errors such as err-mimir-sample-out-of-order.Note: I have deployed Alloy to 3 different clusters, but only 2 of them (with 50-100 nodes each) are experiencing this issue.
Steps to reproduce
System information
GKE v1.30
Software version
Alloy v1.5.1
Configuration
Logs
The text was updated successfully, but these errors were encountered: