mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 08:57:19 +08:00
Update rules.yml
Fixes bug in previous commit. `or` has lower precedence than `<` in PromQL so hence the need for the grouping using parentheses.
This commit is contained in:
parent
00dd58eace
commit
f673fe72c3
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ groups:
|
|||
severity: critical
|
||||
- name: Redis missing master
|
||||
description: Redis cluster has no node marked as master.
|
||||
query: 'count(redis_instance_info{role="master"}) or vector(0) < 1'
|
||||
query: '(count(redis_instance_info{role="master"}) or vector(0)) < 1'
|
||||
severity: critical
|
||||
- name: Redis too many masters
|
||||
description: Redis cluster has too many nodes marked as master.
|
||||
|
|
|
|||
Loading…
Reference in a new issue