update prometheus for proxmox

This commit is contained in:
2025-06-07 20:24:46 +02:00
parent aee2d151a3
commit 6404f7772b
3 changed files with 14 additions and 0 deletions

View File

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

View File

@@ -10,6 +10,7 @@ metadata:
name: k8s
namespace: monitoring
spec:
additionalScrapeConfigsSecret: prometheus-additional-scrape-configs
alerting:
alertmanagers:
- apiVersion: v2

View File

@@ -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']