Skip to content

Commit 9e6405f

Browse files
authored
Update rabbitmq alerts (#1383)
* Update rabbitmq alerts * Fix alert
1 parent ebe2aca commit 9e6405f

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

rabbitmq-mixin/alerts/clusterAlerts.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,12 @@ groups:
2929
description: "A queue has unroutable messages on {{ $labels.instance }}."
3030

3131
- alert: RabbitMQNodeNotDistributed
32-
expr: erlang_vm_dist_node_state < 3
33-
for: 2m
32+
expr: erlang_vm_dist_node_state{rabbitmq_cluster!=""} < 3
33+
for: 5m
3434
labels:
3535
severity: critical
3636
annotations:
3737
summary: 'RabbitMQ node not distributed, link state is down.'
38-
description: "Distribution link state is not 'up' on {{ $labels.instance }}."
39-
40-
- alert: RabbitMQNodeDown
41-
expr: sum by (rabbitmq_cluster) (rabbitmq_identity_info) < 3
42-
for: 0m
43-
labels:
44-
severity: critical
45-
annotations:
46-
summary: 'RabbitMQ node is down.'
47-
description: "Less than 3 nodes running in RabbitMQ cluster\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
38+
description: |-
39+
Distribution link state is not 'up' on {{ $labels.instance }}, current value is {{ $value }}.
40+
Note: The state is represented as a numerical value where pending=1, up_pending=2 and up=3.

rabbitmq-mixin/mixin.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
groups+: std.parseYaml(rules).groups,
1111
},
1212

13-
prometheusAlerts+:
13+
prometheusAlerts+::
1414
importRules(importstr 'alerts/clusterAlerts.yaml'),
1515
}

rabbitmq-mixin/prometheus_rules_out/prometheus_alerts.yaml

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)