Skip to content

[prometheus-blackbox-exporter] Add missing port names to ServiceMonitor endpoints #5322

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebhoss
Copy link

@sebhoss sebhoss commented Feb 15, 2025

What this PR does / why we need it

This correctly sets the port name in the generated ServiceMonitor for both the blackbox-exporter itself as well as the config-reloader. The templating for the port name of the blackbox-exporter was removed since the associated Service hardcodes the port name to http and does not allow to change it.

Which issue this PR fixes

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

pinging @desaintmartin @gianrubio @rsotnychenko @monotek since you guys are listed as maintainers in the Chart.yaml file.

…or endpoints

Since the port names are hardcoded in the service.yaml file, we can just reference them by name instead of templating their values.

Signed-off-by: Sebastian Hoß <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prometheus-blackbox-exporter] Duplicate endpoints in self ServiceMonitor when config-reloader is enabled
1 participant