add namespace to alerts

This commit is contained in:
2025-12-26 21:53:50 -06:00
parent 687a006a4e
commit d6b0ef6522
6 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ annotations:
There are over 10 deadlock conflicts in
{{`{{`}} $labels.pod {{`}}`}}
expr: |
cnpg_pg_stat_database_deadlocks > 10
cnpg_pg_stat_database_deadlocks{namespace="{{ .namespace }}"} > 10
for: 1m
labels:
severity: warning