fix PostgresqlInvalidIndex rule

This commit is contained in:
Samuel Berthe 2024-08-20 18:31:08 +02:00
parent 61da73d517
commit d1715de751
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C

View file

@ -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: