mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
Merge branch 'samber:master' into add-nats-alert
This commit is contained in:
commit
22175d6776
2 changed files with 4 additions and 2 deletions
|
|
@ -730,9 +730,11 @@ groups:
|
|||
See https://github.com/samber/awesome-prometheus-alerts/issues/289#issuecomment-1164842737
|
||||
- name: Postgresql invalid index
|
||||
description: "The table {{ $labels.relname }} has an invalid index: {{ $labels.indexrelname }}. You should execute `DROP INDEX {{ $labels.indexrelname }};`"
|
||||
query: 'pg_genaral_index_info_pg_relation_size{indexrelname=~".*ccnew.*"}'
|
||||
query: 'pg_general_index_info_pg_relation_size{indexrelname=~".*ccnew.*"}'
|
||||
severity: warning
|
||||
for: 6h
|
||||
comments: |
|
||||
See https://github.com/samber/awesome-prometheus-alerts/issues/289#issuecomment-1164842737
|
||||
|
||||
- name: SQL Server
|
||||
exporters:
|
||||
|
|
|
|||
2
dist/rules/postgresql/postgres-exporter.yml
vendored
2
dist/rules/postgresql/postgres-exporter.yml
vendored
|
|
@ -185,7 +185,7 @@ groups:
|
|||
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.*"}'
|
||||
expr: 'pg_general_index_info_pg_relation_size{indexrelname=~".*ccnew.*"}'
|
||||
for: 6h
|
||||
labels:
|
||||
severity: warning
|
||||
|
|
|
|||
Loading…
Reference in a new issue