From cc00e8de8ba41a0f142587cee37b703e7c43251c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sat, 7 Jun 2025 20:26:32 +0200 Subject: [PATCH] update prometheus --- deploy/prometheus/deploy.jsonnet | 5 ++++- deploy/prometheus/manifests/prometheus-prometheus.yaml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deploy/prometheus/deploy.jsonnet b/deploy/prometheus/deploy.jsonnet index aef382e..21c8de5 100644 --- a/deploy/prometheus/deploy.jsonnet +++ b/deploy/prometheus/deploy.jsonnet @@ -16,7 +16,10 @@ local kp = (import 'kube-prometheus/main.libsonnet') + { externalUrl: 'https://metrics.prod.panic.haus', retention: '30d', retentionSize: '16GB', - additionalScrapeConfigsSecret: 'prometheus-additional-scrape-configs', + additionalScrapeConfigs: { + name: 'prometheus-additional-scrape-configs', + key: 'additional-scrape-configs-secret.yaml', + }, storage: { volumeClaimTemplate: { spec: { diff --git a/deploy/prometheus/manifests/prometheus-prometheus.yaml b/deploy/prometheus/manifests/prometheus-prometheus.yaml index 48de473..0155a9b 100644 --- a/deploy/prometheus/manifests/prometheus-prometheus.yaml +++ b/deploy/prometheus/manifests/prometheus-prometheus.yaml @@ -10,7 +10,9 @@ metadata: name: k8s namespace: monitoring spec: - additionalScrapeConfigsSecret: prometheus-additional-scrape-configs + additionalScrapeConfigs: + key: additional-scrape-configs-secret.yaml + name: prometheus-additional-scrape-configs alerting: alertmanagers: - apiVersion: v2