Revert "update prometheus"

This reverts commit 1e7ef34b5c.
This commit is contained in:
2025-03-30 19:34:16 +02:00
parent 1e7ef34b5c
commit 088c534cde
2 changed files with 3 additions and 0 deletions

View File

@@ -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: {

View File

@@ -46,6 +46,7 @@ spec:
fsGroup: 2000
runAsNonRoot: true
runAsUser: 1000
selfScrape: true
serviceAccountName: prometheus-k8s
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: