From 088c534cde80a6695d37fed57d036249e9c5a94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 30 Mar 2025 19:34:16 +0200 Subject: [PATCH] Revert "update prometheus" This reverts commit 1e7ef34b5c1ac5c470a8412b30570740a998a0c1. --- deploy/prometheus/deploy.jsonnet | 2 ++ deploy/prometheus/manifests/prometheus-prometheus.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/deploy/prometheus/deploy.jsonnet b/deploy/prometheus/deploy.jsonnet index c281c94..4ed8079 100644 --- a/deploy/prometheus/deploy.jsonnet +++ b/deploy/prometheus/deploy.jsonnet @@ -24,6 +24,8 @@ local kp = (import 'kube-prometheus/main.libsonnet') + { }, }, }, + // Enable self-scraping so Prometheus will automatically scrape its own /metrics endpoint + selfScrape: true, // Set a ServiceMonitor selector that matches the Prometheus service's labels serviceMonitorSelector: { matchLabels: { diff --git a/deploy/prometheus/manifests/prometheus-prometheus.yaml b/deploy/prometheus/manifests/prometheus-prometheus.yaml index 919819b..3575f03 100644 --- a/deploy/prometheus/manifests/prometheus-prometheus.yaml +++ b/deploy/prometheus/manifests/prometheus-prometheus.yaml @@ -46,6 +46,7 @@ spec: fsGroup: 2000 runAsNonRoot: true runAsUser: 1000 + selfScrape: true serviceAccountName: prometheus-k8s serviceMonitorNamespaceSelector: {} serviceMonitorSelector: