summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--f3s/argocd-apps/monitoring/prometheus.yaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/f3s/argocd-apps/monitoring/prometheus.yaml b/f3s/argocd-apps/monitoring/prometheus.yaml
index 4265168..86d235a 100644
--- a/f3s/argocd-apps/monitoring/prometheus.yaml
+++ b/f3s/argocd-apps/monitoring/prometheus.yaml
@@ -72,6 +72,48 @@ spec:
type: local
app: prometheus
+ alertmanager:
+ config:
+ global:
+ resolve_timeout: 5m
+ route:
+ group_by: ['alertname', 'namespace', 'severity']
+ group_wait: 30s
+ group_interval: 5m
+ repeat_interval: 12h
+ receiver: 'default'
+ routes:
+ # Watchdog alert is just for testing, suppress it
+ - matchers:
+ - alertname = "Watchdog"
+ receiver: 'null'
+ # ArgoCD application alerts - high priority
+ - matchers:
+ - component = "argocd"
+ receiver: 'argocd-alerts'
+ group_by: ['alertname', 'name', 'severity']
+ group_wait: 10s
+ repeat_interval: 6h
+ receivers:
+ - name: 'null'
+ - name: 'default'
+ # Default receiver - alerts visible in UI only
+ - name: 'argocd-alerts'
+ # ArgoCD-specific receiver - alerts visible in UI only
+ # Future: add email/slack/webhook configuration here
+ inhibit_rules:
+ # Inhibit info alerts if warning or critical is firing
+ - source_matchers:
+ - severity = "critical"
+ target_matchers:
+ - severity =~ "warning|info"
+ equal: ['namespace', 'alertname']
+ - source_matchers:
+ - severity = "warning"
+ target_matchers:
+ - severity = "info"
+ equal: ['namespace', 'alertname']
+
grafana:
persistence:
enabled: true