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 5 commits 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.

Copy link

stale bot commented Apr 25, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

…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]>
@sebhoss
Copy link
Author

sebhoss commented Apr 25, 2025

Rebased on latest main branch

monotek
monotek previously approved these changes Jun 23, 2025
Signed-off-by: André Bauer <[email protected]>
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 11.0.0
version: 12.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imho this is currently a breaking change for anybody who uses this currently.

i would change it in a way that the default values you've set are only used if the ports are not set.

Signed-off-by: André Bauer <[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
3 participants