mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
feat: adding patroni alert rules (#369)
This commit is contained in:
parent
13e90b3aea
commit
ecd92399d5
1 changed files with 11 additions and 0 deletions
|
|
@ -706,6 +706,17 @@ groups:
|
|||
query: increase(mssql_deadlocks[1m]) > 5
|
||||
severity: warning
|
||||
|
||||
- name: Patroni
|
||||
exporters:
|
||||
- name: Embedded exporter (Patroni >= 2.1.0)
|
||||
slug: embedded-exporter-patroni
|
||||
doc_url: https://patroni.readthedocs.io/en/latest/rest_api.html?highlight=prometheus#monitoring-endpoint
|
||||
rules:
|
||||
- name: Patroni has no Leader
|
||||
description: A leader node (neither primary nor standby) cannot be found inside the cluster {{ $labels.scope }}
|
||||
query: (max by (scope) (patroni_master) < 1) and (max by (scope) (patroni_standby_leader) < 1)
|
||||
severity: critical
|
||||
|
||||
- name: PGBouncer
|
||||
exporters:
|
||||
- name: spreaker/prometheus-pgbouncer-exporter
|
||||
|
|
|
|||
Loading…
Reference in a new issue