mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 18:06:58 +08:00
Added PostgresqlReplicationLagHigh rule (#456)
* Added PostgresqlReplicationLagHigh rule * Update PostgreSQL replication lag alert settings --------- Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
This commit is contained in:
parent
97a31f34e5
commit
69c8208e3c
2 changed files with 14 additions and 0 deletions
|
|
@ -747,6 +747,11 @@ groups:
|
||||||
for: 6h
|
for: 6h
|
||||||
comments: |
|
comments: |
|
||||||
See https://github.com/samber/awesome-prometheus-alerts/issues/289#issuecomment-1164842737
|
See https://github.com/samber/awesome-prometheus-alerts/issues/289#issuecomment-1164842737
|
||||||
|
- name: Postgresql replication lag high
|
||||||
|
description: The PostgreSQL replication lag is high (> 60s)
|
||||||
|
query: "pg_replication_lag_seconds > 5"
|
||||||
|
severity: warning
|
||||||
|
for: 30s
|
||||||
|
|
||||||
- name: SQL Server
|
- name: SQL Server
|
||||||
exporters:
|
exporters:
|
||||||
|
|
|
||||||
9
dist/rules/postgresql/postgres-exporter.yml
vendored
9
dist/rules/postgresql/postgres-exporter.yml
vendored
|
|
@ -192,3 +192,12 @@ groups:
|
||||||
annotations:
|
annotations:
|
||||||
summary: Postgresql invalid index (instance {{ $labels.instance }})
|
summary: Postgresql invalid index (instance {{ $labels.instance }})
|
||||||
description: "The table {{ $labels.relname }} has an invalid index: {{ $labels.indexrelname }}. You should execute `DROP INDEX {{ $labels.indexrelname }};`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "The table {{ $labels.relname }} has an invalid index: {{ $labels.indexrelname }}. You should execute `DROP INDEX {{ $labels.indexrelname }};`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
|
- alert: PostgresqlReplicationLagHigh
|
||||||
|
expr: 'pg_replication_lag_seconds > 60'
|
||||||
|
for: 2m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
annotations:
|
||||||
|
summary: Postgresql replication lag high (> 60s) (instance {{ $labels.instance }})
|
||||||
|
description: "The PostgreSQL replication lag is high\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue