Skip to content
Snippets Groups Projects
Verified Commit bfc9bcf9 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

staging/alert-rabbitmq: Iterate over the alert message

Drop redundant information and add value and threshold in the alert message.
parent b0a61585
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ spec:
expr: |-
max_over_time(rabbitmq_queue_messages_ready{instance=~{{ $instance_name | quote }}}[5m]) > {{ $threshold }}
annotations:
description: "{{ $environment }}: High number of messages in rabbitmq queue <{{"{{"}} $labels.queue {{"}}"}}> (server: <{{"{{"}} $labels.cluster {{"}}"}}>)"
description: "High number of messages in rabbitmq queue <{{"{{"}} $labels.queue {{"}}"}}> ({{"{{"}} $value {{"}}"}} > {{"{{"}} $threshold {{"}}"}})"
summary: "A queue exceeds a given threshold in environment <{{ $environment }}>, rabbitmq instance <{{ $instance }}>"
for: {{ $period }}
labels:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment