From 0ae40a5458e3dc3f1f5c11ad6f817fcabdfc0390 Mon Sep 17 00:00:00 2001 From: HDW Date: Fri, 1 May 2026 10:58:57 +0200 Subject: [PATCH] monitoring --- infrastructure/prometheus/monitoring-app.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 infrastructure/prometheus/monitoring-app.yaml diff --git a/infrastructure/prometheus/monitoring-app.yaml b/infrastructure/prometheus/monitoring-app.yaml new file mode 100644 index 0000000..5eccf0b --- /dev/null +++ b/infrastructure/prometheus/monitoring-app.yaml @@ -0,0 +1,61 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: prometheus-stack + namespace: argocd +spec: + project: default + source: + repoURL: https://prometheus-community.github.io/helm-charts + targetRevision: 61.x.x + chart: kube-prometheus-stack + helm: + values: | + namespaceOverride: "monitoring" + + # Gemeinsame Labels für alle Ressourcen + commonLabels: + tier: infra + + prometheus: + prometheusSpec: + # Prometheus soll nur auf Nodes mit diesem Label laufen: + nodeSelector: + tier: infra + retention: 7d + storageSpec: + volumeClaimTemplate: + spec: + accessModes: ["ReadWriteOnce"] + resources: + requests: + storage: 10Gi + resources: + requests: + memory: "1Gi" + limits: + memory: "2Gi" + + grafana: + # Auch Grafana ziehen wir auf die Infra-Nodes + nodeSelector: + tier: infra + persistence: + enabled: true + size: 2Gi + + # Der Node-Exporter läuft weiterhin als DaemonSet ÜBERALL, + # damit er JEDEN RAM im Cluster sieht. + nodeExporter: + enabled: true + operatingSystem: linux + + destination: + server: https://kubernetes.default.svc + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true