charm-rabbitmq-server/files/prom_rule_rmq_splitbrain.yaml
Linda Guo 0653c186ce Rabbitmq metrics and splitbrain detection
Enabled rabbitmq_prometheus plugin for prometheus to scrape
the metrics of rabbitmq and alert if rabbitmq splitbrain is
detected.

Integrated rabbitmq dashboards in grafana via dashboards
relations

Added new unit test cases

Closes-Bug: 1899183
Change-Id: I88942dd0b246c498d0ab40b00d586d4349b0f100
2022-01-17 18:32:38 +11:00

11 lines
362 B
YAML

- alert: RabbitMQ_split_brain
# detect if rabbitmq_queues is different between rabbitmq nodes
expr: count(count(rabbitmq_queues) by (job)) > 1
for: 5m
labels:
severity: page
application: rabbitmq-server
annotations:
description: RabbitMQ split brain detected
summary: RabbitMQ split brain detected