-
Notifications
You must be signed in to change notification settings - Fork 23
Fix blackbox endpoints when blackbox-exporter placement is customised #2026
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
base: stackhpc/2024.1
Are you sure you want to change the base?
Conversation
This variable needs to be defined on the prometheus-server group since that is where prometheus.yml is generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The change to move the blackbox exporter endpoint definitions to the prometheus-server group variables is correct, as this is where the Prometheus configuration is generated. This correctly fixes the issue described in the pull request.
However, during the review, I found a significant bug in how dynamic endpoints are generated and processed within this file. The current implementation leads to incorrect Prometheus scrape targets for several services. I've added detailed comments with suggestions to fix this. Addressing these issues will make the blackbox monitoring much more reliable.
|
@jovial could you re-target this at 2025.1 and add a release note? |
2025.1 is OK because the code was moved the automatic blackbox generation was moved into kolla-ansible 🥳 . I can add a reno. |
Unfortunately, not everything was moved to KA. We still have the backend endpoints defined in SKC in 2025.1. The file still exists There was a plan to move backend endpoints as well to KA, but we decided to try and use file-based service discovery in prometheus for it. That didn't work, so we implemented it downstream as a quick fix and no one's had time to upstream it yet. |
This variable needs to be defined on the prometheus group since that is where prometheus.yml is generated.