Skip to content

Commit 057519a

Browse files
Add prometheus discovery selector for standard k8s labels (#1877)
Co-authored-by: Pavan Gudiwada <pavangudiwada@users.noreply.github.com>
1 parent d76d703 commit 057519a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/robusta/integrations/prometheus

src/robusta/integrations/prometheus/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def find_prometheus_url(cls) -> Optional[str]:
137137
selectors=[
138138
"app=kube-prometheus-stack-prometheus",
139139
"app=prometheus,component=server,release!=kubecost",
140+
"app.kubernetes.io/name=prometheus,app.kubernetes.io/component=server",
140141
"app=prometheus-server",
141142
"app=prometheus-operator-prometheus",
142143
"app=rancher-monitoring-prometheus",

0 commit comments

Comments
 (0)