summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatan Yellin <aantn@users.noreply.github.com>2024-03-29 20:32:11 +0300
committerGitHub <noreply@github.com>2024-03-29 20:32:11 +0300
commit746675875a24b828ccd2f0cf6314c5492198b3a5 (patch)
tree11559f1c340dd5a3c593519fb16f41b37304bbd7
parentbe90947b49afa7e69b8024758bb18824d466d34e (diff)
parent61669790edf48c258ca5d904fc0bfc77a659646a (diff)
Merge pull request #252 from bpfoster/prometheus-discover-labels
Add selectors to Prometheus discovery
-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",