You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prodwork01-argocd/clusterspecifics/alerts/alert_prometheus_msteams.yaml

22 lines
895 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: kube-prometheus-stack-prometheus # dieser name ist fest
role: alert-rules # auch fest
release: kube-prometheus-stack # IMPORTANT: ohne das Label wird die Rule vom PrometheusOperator nicht gefunden
name: prometheus-msteams-alert
namespace: monitoring # Rule im namespace anlegen in dem die zu ueberwachende App laeuft
spec:
groups:
- name: msteams_alerts
rules:
- alert: PrometheusMSTeamsDown
expr: up{job="prometheus-msteams"} == 0
for: 5m
labels:
severity: critical
receiver: email
annotations:
summary: "Prometheus MSTeams is down"
description: "The prometheus-msteams service has been down for more than 5 minutes."