From 983c4cf90a3cfa0c9e2fba2c4e0112ef4fecc81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 30 Mar 2025 20:51:37 +0200 Subject: [PATCH] fix prom --- deploy/prometheus/deploy.jsonnet | 4 ++-- .../prometheus/manifests/prometheus-self-servicemonitor.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/prometheus/deploy.jsonnet b/deploy/prometheus/deploy.jsonnet index 24a383c..f7fdbe5 100644 --- a/deploy/prometheus/deploy.jsonnet +++ b/deploy/prometheus/deploy.jsonnet @@ -147,9 +147,9 @@ local manifests = spec: { jobLabel: 'prometheus', selector: { - // Ensure this matches the labels on your Prometheus service. + // Updated to match the labels on your Prometheus service. matchLabels: { - prometheus: 'prometheus-k8s', + "app.kubernetes.io/name": "prometheus", }, }, endpoints: [{ diff --git a/deploy/prometheus/manifests/prometheus-self-servicemonitor.yaml b/deploy/prometheus/manifests/prometheus-self-servicemonitor.yaml index 7de431f..6c34e79 100644 --- a/deploy/prometheus/manifests/prometheus-self-servicemonitor.yaml +++ b/deploy/prometheus/manifests/prometheus-self-servicemonitor.yaml @@ -13,4 +13,4 @@ spec: jobLabel: prometheus selector: matchLabels: - prometheus: prometheus-k8s + app.kubernetes.io/name: prometheus