From 6404f7772b2dc811ec8c1be73a47265048bb1e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sat, 7 Jun 2025 20:24:46 +0200 Subject: [PATCH] update prometheus for proxmox --- deploy/prometheus/deploy.jsonnet | 1 + .../prometheus/manifests/prometheus-prometheus.yaml | 1 + .../prometheus-additional-scrape-configs-secrey.yaml | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 deploy/prometheus/prometheus-additional-scrape-configs-secrey.yaml diff --git a/deploy/prometheus/deploy.jsonnet b/deploy/prometheus/deploy.jsonnet index 2a71f8b..aef382e 100644 --- a/deploy/prometheus/deploy.jsonnet +++ b/deploy/prometheus/deploy.jsonnet @@ -16,6 +16,7 @@ local kp = (import 'kube-prometheus/main.libsonnet') + { externalUrl: 'https://metrics.prod.panic.haus', retention: '30d', retentionSize: '16GB', + additionalScrapeConfigsSecret: 'prometheus-additional-scrape-configs', storage: { volumeClaimTemplate: { spec: { diff --git a/deploy/prometheus/manifests/prometheus-prometheus.yaml b/deploy/prometheus/manifests/prometheus-prometheus.yaml index 7725901..48de473 100644 --- a/deploy/prometheus/manifests/prometheus-prometheus.yaml +++ b/deploy/prometheus/manifests/prometheus-prometheus.yaml @@ -10,6 +10,7 @@ metadata: name: k8s namespace: monitoring spec: + additionalScrapeConfigsSecret: prometheus-additional-scrape-configs alerting: alertmanagers: - apiVersion: v2 diff --git a/deploy/prometheus/prometheus-additional-scrape-configs-secrey.yaml b/deploy/prometheus/prometheus-additional-scrape-configs-secrey.yaml new file mode 100644 index 0000000..448ada8 --- /dev/null +++ b/deploy/prometheus/prometheus-additional-scrape-configs-secrey.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Secret +metadata: + name: prometheus-additional-scrape-configs + namespace: monitoring +stringData: + additional-scrape-configs.yaml: | + - job_name: 'proxmox-holly-node-exporter' + scheme: https + metrics_path: /metrics + static_configs: + - targets: ['node-exporter.holly.panic.haus']