1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112{
"id": null,
"uid": "equalify-queue-monitor",
"title": "Equalify Reflow - Queue Monitor",
"tags": ["equalify", "queues", "monitoring"],
"timezone": "browser",
"schemaVersion": 38,
"version": 0,
"refresh": "15s",
"panels": [
{
"id": 1,
"gridPos": {"x": 0, "y": 0, "w": 24, "h": 10},
"type": "timeseries",
"title": "Queue Depths (Real-time)",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "queue_depth{queue_name=\"pii_scan_queue\"}",
"legendFormat": "PII Scan Queue",
"refId": "A"
},
{
"expr": "queue_depth{queue_name=\"processing_queue\"}",
"legendFormat": "Processing Queue",
"refId": "B"
},
{
"expr": "queue_depth{queue_name=\"approval_pending_queue\"}",
"legendFormat": "Approval Queue",
"refId": "C"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
}
},
"options": {
"legend": {
"showLegend": true,
"displayMode": "list",
"placement": "bottom",
"calcs": ["lastNotNull", "max", "mean"]
}
}
},
{
"id": 2,
"gridPos": {"x": 0, "y": 10, "w": 12, "h": 8},
"type": "timeseries",
"title": "Queue Processing Rate (jobs/min)",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "rate(jobs_completed_total[5m]) * 60",
"legendFormat": "{{status}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
}
}
},
{
"id": 3,
"gridPos": {"x": 12, "y": 10, "w": 12, "h": 8},
"type": "stat",
"title": "Average Queue Wait Time (estimated)",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "sum(queue_depth) / (rate(jobs_completed_total[5m]) + 0.001)",
"legendFormat": "Wait Time",
"refId": "A"
}
],
"options": {
"reduceOptions": {
"values": false,
"calcs": ["lastNotNull"]
},
"textMode": "value_and_name"
},
"fieldConfig": {
"defaults": {
"unit": "s",
"thresholds": {
"mode": "absolute",
"steps": [
{"value": 0, "color": "green"},
{"value": 60, "color": "yellow"},
{"value": 300, "color": "red"}
]
}
}
}
}
]
}