mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 17:37:19 +08:00
32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
groups:
|
|
|
|
- name: SpreakerPgbouncerExporter
|
|
|
|
rules:
|
|
|
|
- alert: PgbouncerActiveConnections
|
|
expr: 'pgbouncer_pools_server_active_connections > 200'
|
|
for: 2m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: PGBouncer active connections (instance {{ $labels.instance }})
|
|
description: "PGBouncer pools are filling up\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
|
|
|
- alert: PgbouncerErrors
|
|
expr: 'increase(pgbouncer_errors_count{errmsg!="server conn crashed?"}[1m]) > 10'
|
|
for: 0m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: PGBouncer errors (instance {{ $labels.instance }})
|
|
description: "PGBouncer is logging errors. This may be due to a a server restart or an admin typing commands at the pgbouncer console.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
|
|
|
- alert: PgbouncerMaxConnections
|
|
expr: 'increase(pgbouncer_errors_count{errmsg="no more connections allowed (max_client_conn)"}[30s]) > 0'
|
|
for: 0m
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
summary: PGBouncer max connections (instance {{ $labels.instance }})
|
|
description: "The number of PGBouncer client connections has reached max_client_conn.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|