awesome-prometheus-alerts/dist/rules/patroni/embedded-exporter-patroni.yml
2023-08-15 18:28:36 +00:00

14 lines
505 B
YAML

groups:
- name: EmbeddedExporterPatroni
rules:
- alert: PatroniHasNoLeader
expr: '(max by (scope) (patroni_master) < 1) and (max by (scope) (patroni_standby_leader) < 1)'
for: 0m
labels:
severity: critical
annotations:
summary: Patroni has no Leader (instance {{ $labels.instance }})
description: "A leader node (neither primary nor standby) cannot be found inside the cluster {{ $labels.scope }}\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"