Skip to content

Commit

Permalink
fix PostgresqlInvalidIndex rule
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Aug 20, 2024
1 parent 61da73d commit d1715de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _data/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d1715de

Please sign in to comment.