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