-
Notifications
You must be signed in to change notification settings - Fork 3.4k
docs: clarify Prometheus annotation logic for metrics #40532
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
docs: clarify Prometheus annotation logic for metrics #40532
Conversation
Clarifies that Prometheus annotations are only present when ServiceMonitor is disabled. If enabled, Prometheus discovers metrics via the ServiceMonitor resource. Closes: cilium#21958 Signed-off-by: Rayyan Seliya <rayyanseliya786@gmail.com>
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.
@RayyanSeliya LGTM
|
Hey @hemanthmalla @derailed can u please move forward for merging this pr I think it's ready ! |
/test |
hey @xmulligan thx for test and do i need to update the branch also ?? and yeah just wanted to have some guidance on my proposal any suggestions as i am now very much familiar with cilium with 2 prs merged and 1 pr pending and contributing more !! |
LGTM, merging thanks. |
This PR updates the Monitoring & Metrics documentation to clarify that Prometheus annotations (
prometheus.io/scrape
,prometheus.io/port
) are only present whenhubble.metrics.serviceMonitor.enabled
is set tofalse
. If ServiceMonitor is enabled, these annotations are omitted and Prometheus discovers metrics via the ServiceMonitor resource.Closes: #21958
See the screenshot here how it looks