summaryrefslogtreecommitdiff
path: root/robusta_krr/core
diff options
context:
space:
mode:
authorBen Foster <bpfoster@gmail.com>2024-03-29 10:42:04 -0400
committerBen Foster <bpfoster@gmail.com>2024-03-29 10:46:16 -0400
commit61669790edf48c258ca5d904fc0bfc77a659646a (patch)
tree11559f1c340dd5a3c593519fb16f41b37304bbd7 /robusta_krr/core
parentbe90947b49afa7e69b8024758bb18824d466d34e (diff)
Add selectors to Prometheus discovery
Adds labels to the promethues discovery selectors that follow the convention used by the prometheus-community chart
Diffstat (limited to 'robusta_krr/core')
-rw-r--r--robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py
index e61ef4c..2833496 100644
--- a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py
+++ b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py
@@ -34,6 +34,7 @@ class PrometheusDiscovery(MetricsServiceDiscovery):
return super().find_url(
selectors=[
+ "app.kubernetes.io/name=prometheus,app.kubernetes.io/component=server",
"app=kube-prometheus-stack-prometheus",
"app=prometheus,component=server",
"app=prometheus-server",