Skip to content

Commit 45d1714

Browse files
Added 2 rabbitmq monitors, consumers_at_zero & message_ready (#17644)
* Added 2 rabbitmq monitors, consumers_at_zero & message_ready * Added 2 rabbitmq monitors, fixed version issue in prev commit. added aggregate by host * Update rabbitmq/assets/monitors/message_ready.json Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> * Update rabbitmq/assets/monitors/consumers_at_zero.json Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> * Delete ddev/ddev-9.0.0.pkg --------- Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>
1 parent bafd6e8 commit 45d1714

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": 2,
3+
"created_at": "2024-05-28",
4+
"last_updated_at": "2024-05-28",
5+
"title": "RabbitMQ queue has 0 consumers",
6+
"tags": [
7+
"integration:rabbitmq"
8+
],
9+
"description": "Notify your team when RabbitMQ has 0 consumers in a queue.",
10+
"definition":{
11+
"message": "RabbitMQ currently has 0 consumers in {{rabbitmq_queue.name}} on {{host.name}}. This can lead to message accumulation which can impact application latency and increased memory usage to store the accumulated messages",
12+
"name": "[RabbitMQ] Number of consumers is 0 in {{rabbitmq_queue.name}} on {{host.name}}",
13+
"options": {
14+
"thresholds": {
15+
"critical": 1
16+
},
17+
"notify_audit": false,
18+
"notify_no_data": false,
19+
"include_tags": true,
20+
"new_group_delay": 60
21+
},
22+
"priority": null,
23+
"query": "avg(last_5m):rabbitmq.queue.consumers{*} by {host,rabbitmq_queue} < 1",
24+
"tags": [
25+
"integration:rabbitmq"
26+
],
27+
"type": "query alert"
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": 2,
3+
"created_at": "2024-05-28",
4+
"last_updated_at": "2024-05-28",
5+
"title": "Messages are ready in RabbitMQ queue",
6+
"tags": [
7+
"integration:rabbitmq"
8+
],
9+
"description": "Notify your team when messages are ready in your RabbitMQ queue.",
10+
"definition":{
11+
"message": "Messages are ready in {{rabbitmq_queue.name}} on {{host.name}}. With messages ready in your queue, ensure you have consumers to consume these messages.",
12+
"name": "[RabbitMQ] Queue message(s) ready in {{rabbitmq_queue.name}} ",
13+
"options": {
14+
"thresholds": {
15+
"critical": 1
16+
},
17+
"notify_audit": false,
18+
"notify_no_data": false,
19+
"include_tags": true,
20+
"new_group_delay": 60
21+
},
22+
"priority": null,
23+
"query": "avg(last_5m):rabbitmq.queue.messages_ready{*} by {host,rabbitmq_queue} > 1",
24+
"tags": [
25+
"integration:rabbitmq"
26+
],
27+
"type": "query alert"
28+
}
29+
}

rabbitmq/manifest.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
"disk_usage": "assets/monitors/disk_usage.json",
5858
"message_unacknowledge_rate_anomaly": "assets/monitors/message_unacknowledge_rate_anomaly.json",
5959
"disk_usage_prometheus": "assets/monitors/disk_usage_prometheus.json",
60-
"message_unack_prometheus": "assets/monitors/message_unack_prometheus.json"
60+
"message_unack_prometheus": "assets/monitors/message_unack_prometheus.json",
61+
"consumers_at_zero": "assets/monitors/consumers_at_zero.json",
62+
"message_ready": "assets/monitors/message_ready.json"
6163
},
6264
"saved_views": {
6365
"pid_overview": "assets/saved_views/status_overview.json",

0 commit comments

Comments
 (0)