Closed csahithi closed 4 weeks ago
@girishmg Pls review this PR
Some background:
prometheus
CR objectIn this example, all ServiceMonitors in all Namespaces are selected
# kubectl get prometheus -n monitoring -o yaml |grep -i servicemonitor
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
#
In this example, only those servicemontiors with the label release: kube-prometheus-stack
will be selected
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector:
matchLabels:
release: kube-prometheus-stack
Changes were only made to Helm Charts, and the helm lane test ran successfully.. so going to merge this.
What this PR does and why is it needed
This PR adds custom labels on ovn-kubernetes service monitor objects in the helm chart so that the service monitors are discovered from which the prometheus exporters scrape metrics off of.
Which issue(s) this PR fixes
None
Special notes for reviewers
None
How to verify it
Details to documentation updates
Description for the changelog
Adds labels to service monitor ovn-kubernetes objects off of which prometheus metrics are scraped.
Does this PR introduce a user-facing change?