monitoring: additional alert for excessive warnings

This commit is contained in:
2025-12-02 10:57:46 -05:00
parent 659aa5f1aa
commit e7775aa9dc

View File

@@ -27,6 +27,19 @@ kube-prometheus-stack:
resources:
requests:
storage: 50Gi
additionalPrometheusRulesMap:
rule-name:
groups:
- name: AdditionalAlerts
rules:
- alert: ExcessiveWarnings
expr: count(ALERTS{severity="warning",alertstate="firing"}) >= 5
for: 1m
labels:
severity: critical
annotations:
summary: Excessive 'warning' alerts are firing in the cluster
description: "{{ $value }} alerts with 'warning' severity are firing and could be a sign of catastrophic failure in the cluster"
prometheusOperator:
admissionWebhooks:
certManager: