File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 66- name: rabbitmq.rules
77 rules:
88 - alert: RabbitMQNodeDown
9- expr: sum(rabbitmq_build_info{instance!=""}) < {{ groups['rabbitmq'] | length } }
9+ expr: sum(rabbitmq_build_info{instance!=""}) < {% endraw %}{{ alertmanager_number_of_rabbitmq_nodes }}{% raw % }
1010 for: 30m
1111 labels:
1212 severity: critical
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ alertmanager_packet_drop_threshold: 1
2626# packets/s averaged over 5 minutes.
2727alertmanager_packet_errors_threshold : 1
2828
29+ # Number of RabbitMQ nodes in the cluster.
30+ alertmanager_number_of_rabbitmq_nodes : " {{ groups['controllers'] | length }}"
31+
2932# ##############################################################################
3033# Exporter configuration
3134
You can’t perform that action at this time.
0 commit comments