Skip to content

Remove unused prometheus.io annotations - #33

Merged
superbrothers merged 1 commit into
masterfrom
remove-prometheus-annotations
Nov 18, 2026
Merged

superbrothers merged 1 commit into
masterfrom
remove-prometheus-annotations

Conversation

@Kaniikura

@Kaniikura Kaniikura commented Nov 18, 2026 •

Copy link
Copy Markdown

Remove the prometheus.io/* annotations from the metrics Service and the
controller-manager Pod template.

Annotation-based scrape discovery is a legacy convention. Clusters that use
the Prometheus Operator discover targets through ServiceMonitor / PodMonitor
and never read these annotations. They also hard-code the port and scheme
(8080 / http), which becomes wrong as soon as a deployment puts the
metrics endpoint behind an authenticating proxy.

Users who still rely on annotation-based discovery can add the annotations
back with a kustomize patch.

Annotation-based scrape discovery is a legacy convention, and the
annotations hard-code the metrics port and scheme.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Kaniikura
Kaniikura marked this pull request as ready for review November 18, 2026 02:26
@superbrothers
superbrothers merged commit 5e5711a into master Nov 18, 2026
2 checks passed
@superbrothers
superbrothers deleted the remove-prometheus-annotations branch November 18, 2026 02:29
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.

2 participants