Skip to content

Commit 6ab1be7

Browse files
committed
Fix wrong label in RabbitMQ alerts
1 parent f673aeb commit 6ab1be7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

etc/kayobe/kolla/config/prometheus/rabbitmq.rules

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,68 @@ groups:
66
- name: rabbitmq.rules
77
rules:
88
- alert: RabbitMQNodeDown
9-
expr: sum(rabbitmq_build_info{host_name!=""}) < 3
9+
expr: sum(rabbitmq_build_info{instance!=""}) < 3
1010
for: 30m
1111
labels:
1212
severity: critical
1313
annotations:
14-
description: RabbitMQ node down on {{ $labels.host_name }}
14+
description: RabbitMQ node down on {{ $labels.instance }}
1515
- alert: RabbitMQConsumersLowUtilization
1616
expr: rabbitmq_queue_consumer_utilisation < 0.4
1717
for: 5m
1818
labels:
1919
severity: warning
2020
annotations:
21-
description: RabbitMQ consumers message consumption speed is low on {{ $labels.host_name }}
21+
description: RabbitMQ consumers message consumption speed is low on {{ $labels.instance }}
2222
- alert: RabbitMQNodeNotDistributed
2323
expr: erlang_vm_dist_node_state < 3
2424
for: 5m
2525
labels:
2626
severity: critical
2727
annotations:
28-
description: RabbitMQ node not distributed on node {{ $labels.host_name }}
28+
description: RabbitMQ node not distributed on node {{ $labels.instance }}
2929
- alert: RabbitMQMemoryHigh
3030
expr: rabbitmq_process_resident_memory_bytes / rabbitmq_resident_memory_limit_bytes
3131
* 100 > 90
3232
for: 2m
3333
labels:
3434
severity: warning
3535
annotations:
36-
description: RabbitMQ memory too high on {{ $labels.host_name }}
36+
description: RabbitMQ memory too high on {{ $labels.instance }}
3737
- alert: RabbitMQFileDescriptorsUsage
3838
expr: rabbitmq_process_open_fds / rabbitmq_process_max_fds * 100 > 90
3939
for: 2m
4040
labels:
4141
severity: warning
4242
annotations:
43-
description: RabbitMQ file descriptors usage on {{ $labels.host_name }}
43+
description: RabbitMQ file descriptors usage on {{ $labels.instance }}
4444
- alert: RabbitMQTooMuchUnack
4545
expr: sum(rabbitmq_queue_messages_unacked) BY (queue) > 1000
4646
for: 1m
4747
labels:
4848
severity: warning
4949
annotations:
50-
description: RabbitMQ too much unack on {{ $labels.host_name }}
50+
description: RabbitMQ too much unack on {{ $labels.instance }}
5151
- alert: RabbitMQTooMuchConnections
5252
expr: rabbitmq_connections > 1000
5353
for: 2m
5454
labels:
5555
severity: warning
5656
annotations:
57-
description: RabbitMQ too much connections on {{ $labels.host_name }}
57+
description: RabbitMQ too much connections on {{ $labels.instance }}
5858
- alert: RabbitMQNoQueueConsumer
5959
expr: rabbitmq_queue_consumers < 1
6060
for: 1m
6161
labels:
6262
severity: warning
6363
annotations:
64-
description: RabbitMQ no queue consumer on {{ $labels.host_name }}
64+
description: RabbitMQ no queue consumer on {{ $labels.instance }}
6565
- alert: RabbitMQUnroutableMessages
6666
expr: increase(rabbitmq_channel_messages_unroutable_returned_total[1m]) > 0 or increase(rabbitmq_channel_messages_unroutable_dropped_total[1m]) > 0
6767
for: 2m
6868
labels:
6969
severity: warning
7070
annotations:
71-
description: RabbitMQ unroutable messages on {{ $labels.host_name }}
71+
description: RabbitMQ unroutable messages on {{ $labels.instance }}
7272

7373
{% endraw %}

0 commit comments

Comments
 (0)