mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 02:17:00 +08:00
Publish
This commit is contained in:
parent
76de11d71b
commit
308b3c52dd
1 changed files with 9 additions and 0 deletions
9
dist/rules/postgresql/postgres-exporter.yml
vendored
9
dist/rules/postgresql/postgres-exporter.yml
vendored
|
|
@ -183,3 +183,12 @@ groups:
|
||||||
annotations:
|
annotations:
|
||||||
summary: Postgresql bloat table high (> 80%) (instance {{ $labels.instance }})
|
summary: Postgresql bloat table high (> 80%) (instance {{ $labels.instance }})
|
||||||
description: "The table {{ $labels.relname }} is bloated. You should execute `VACUUM {{ $labels.relname }};`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "The table {{ $labels.relname }} is bloated. You should execute `VACUUM {{ $labels.relname }};`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
|
- alert: PostgresqlInvalidIndex
|
||||||
|
expr: 'pg_genaral_index_info_pg_relation_size{indexrelname=~".*ccnew.*"}'
|
||||||
|
for: 6h
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
annotations:
|
||||||
|
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 }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue