mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 11:27:00 +08:00
fix: change pg expr grater rules
This commit is contained in:
parent
68d45a0856
commit
68e05d61ca
2 changed files with 2 additions and 2 deletions
|
|
@ -620,7 +620,7 @@ groups:
|
|||
for: 2m
|
||||
- name: Postgresql not enough connections
|
||||
description: PostgreSQL instance should have more connections (> 5)
|
||||
query: 'sum by (datname) (pg_stat_activity_count{datname!~"template.*|postgres"}) < 5'
|
||||
query: 'sum by (datname) (pg_stat_activity_count{datname!~"template.*|postgres"}) > 5'
|
||||
severity: warning
|
||||
for: 2m
|
||||
- name: Postgresql dead locks
|
||||
|
|
|
|||
2
dist/rules/postgresql/postgres-exporter.yml
vendored
2
dist/rules/postgresql/postgres-exporter.yml
vendored
|
|
@ -59,7 +59,7 @@ groups:
|
|||
description: "PostgreSQL instance has too many connections (> 80%).\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: PostgresqlNotEnoughConnections
|
||||
expr: 'sum by (datname) (pg_stat_activity_count{datname!~"template.*|postgres"}) < 5'
|
||||
expr: 'sum by (datname) (pg_stat_activity_count{datname!~"template.*|postgres"}) > 5'
|
||||
for: 2m
|
||||
labels:
|
||||
severity: warning
|
||||
|
|
|
|||
Loading…
Reference in a new issue