Skip to content

Commit a7e3e05

Browse files
authored
Add Celery monitors (#20027)
* Add Celert monitors * small fix
1 parent d1ed83a commit a7e3e05

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": 2,
3+
"created_at": "2025-04-07",
4+
"last_updated_at": "2025-04-07",
5+
"title": "Celery workers are idle.",
6+
"description": "This monitor alerts when the number of tasks currently executing at this worker is 0.",
7+
"definition": {
8+
"id": 168521082,
9+
"name": "Celery workers are idle.",
10+
"type": "query alert",
11+
"query": "min(last_5m):avg:celery.flower.worker.executing_tasks{*} by {worker,endpoint} <= 0",
12+
"message": "{{#is_alert}}\n Celery workers are likely idle. Workers are not executing tasks.\n{{/is_alert}}",
13+
"tags": [
14+
"integration:celery"
15+
],
16+
"options": {
17+
"thresholds": {
18+
"critical": 0
19+
},
20+
"notify_audit": false,
21+
"on_missing_data": "default",
22+
"include_tags": true,
23+
"new_group_delay": 60,
24+
"silenced": {}
25+
},
26+
"priority": null,
27+
"restriction_policy": {
28+
"bindings": []
29+
}
30+
},
31+
"tags": [
32+
"integration:celery"
33+
]
34+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": 2,
3+
"created_at": "2025-04-08",
4+
"last_updated_at": "2025-04-08",
5+
"title": "Celery workers are offline.",
6+
"description": "This monitor alerts when the number of Celery workers online is 0.",
7+
"definition": {
8+
"id": 168617317,
9+
"name": "Celery workers are down on {{host.name}}",
10+
"type": "query alert",
11+
"query": "min(last_5m):sum:celery.flower.worker.online{*} by {host,endpoint} <= 0",
12+
"message": "{{#is_alert}}\n There are no Celery workers online. Please check.\n{{/is_alert}}",
13+
"tags": [
14+
"integration:celery"
15+
],
16+
"options": {
17+
"thresholds": {
18+
"critical": 0
19+
},
20+
"notify_audit": false,
21+
"on_missing_data": "default",
22+
"include_tags": true,
23+
"new_group_delay": 60,
24+
"renotify_interval": 0,
25+
"escalation_message": "",
26+
"silenced": {}
27+
},
28+
"priority": null,
29+
"restriction_policy": {
30+
"bindings": []
31+
}
32+
},
33+
"tags": [
34+
"integration:celery"
35+
]
36+
}

celery/manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
"process_signatures": [
4444
"celery"
4545
]
46+
},
47+
"monitors": {
48+
"Celery workers are idle": "assets/monitors/celery_exection_idle.json",
49+
"Celery workers are offline": "assets/monitors/celery_workers_down.json"
4650
}
4751
},
4852
"author": {

0 commit comments

Comments
 (0)