Skip to content

Commit

Permalink
prometheus.rules: support multiple cluster in split brain
Browse files Browse the repository at this point in the history
This patch make the alerting rules for split brain safe to use with
multi cluster installation.

Fixes #2304

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
  • Loading branch information
amnonh committed Jun 11, 2024
1 parent 07bf1ed commit 3d422c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prometheus/prom_rules/prometheus.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ groups:
description: 'Node {{ $labels.instance }} in Joining mode for 1 day'
summary: Node {{ $labels.instance }} in Joining mode for 1 day
- alert: splitBrain
expr: sum(scylla_gossip_live) < (count(scylla_node_operation_mode==3)-1) * count(scylla_gossip_live)
expr: sum(scylla_gossip_live) by (cluster) < (count(scylla_node_operation_mode==3) by (cluster) -1) * count(scylla_gossip_live) by (cluster)
for: 10m
labels:
severity: "warn"
description: 'Cluster in a split-brain mode'
description: 'Cluster {{ $labels.cluster }} in a split-brain mode'
summary: Some nodes in the cluster do not see all of the other live nodes
- alert: bloomFilterSize
expr: scylla_sstables_bloom_filter_memory_size/scylla_memory_total_memory > 0.2
Expand Down

0 comments on commit 3d422c3

Please # to comment.