forked from mtusi2026/mtusi2026lab6
4 grade_and_report
This commit is contained in:
@@ -1,66 +1,52 @@
|
||||
{
|
||||
"annotations": {"list": []},
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
|
||||
"fieldConfig": {"defaults": {"unit": "short"}, "overrides": []},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"fieldConfig": {"defaults": {"unit": "short"}},
|
||||
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
|
||||
"id": 1,
|
||||
"options": {"legend": {"displayMode": "list", "placement": "bottom"}},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(rate(worker_processed_total[1m])) by (result)",
|
||||
"legendFormat": "{{result}}",
|
||||
"refId": "A"
|
||||
}
|
||||
{"expr": "sum(rate(worker_processed_total{result=\"success\"}[1m]))", "legendFormat": "Success"},
|
||||
{"expr": "sum(rate(worker_processed_total{result=\"error\"}[1m]))", "legendFormat": "Error"}
|
||||
],
|
||||
"title": "Worker Jobs (success/fail)",
|
||||
"title": "Worker Jobs (Success/Error)",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
|
||||
"fieldConfig": {"defaults": {"unit": "s"}, "overrides": []},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"fieldConfig": {"defaults": {"unit": "s"}},
|
||||
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
|
||||
"id": 2,
|
||||
"options": {"legend": {"displayMode": "list", "placement": "bottom"}},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "histogram_quantile(0.95, sum(rate(worker_duration_seconds_bucket[5m])) by (le))",
|
||||
"legendFormat": "p95 duration",
|
||||
"refId": "A"
|
||||
}
|
||||
{"expr": "histogram_quantile(0.50, sum(rate(worker_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p50"},
|
||||
{"expr": "histogram_quantile(0.95, sum(rate(worker_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p95"},
|
||||
{"expr": "histogram_quantile(0.99, sum(rate(worker_duration_seconds_bucket[5m])) by (le))", "legendFormat": "p99"}
|
||||
],
|
||||
"title": "Worker Duration p95",
|
||||
"title": "Worker Duration (p50/p95/p99)",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"fieldConfig": {"defaults": {"unit": "short"}},
|
||||
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 8},
|
||||
"id": 3,
|
||||
"targets": [{"expr": "sum(worker_in_flight)", "legendFormat": "In Flight"}],
|
||||
"title": "Worker Saturation (In Flight Jobs)",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"fieldConfig": {"defaults": {"unit": "short"}},
|
||||
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 8},
|
||||
"id": 4,
|
||||
"targets": [{"expr": "sum(rabbitmq_queue_depth)", "legendFormat": "Queue Depth"}],
|
||||
"title": "Queue Depth",
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"schemaVersion": 39,
|
||||
"tags": ["lab6"],
|
||||
"templating": {
|
||||
"list": [
|
||||
{
|
||||
"current": {},
|
||||
"hide": 0,
|
||||
"includeAll": false,
|
||||
"label": "Prometheus",
|
||||
"multi": false,
|
||||
"name": "DS_PROMETHEUS",
|
||||
"options": [],
|
||||
"query": "prometheus",
|
||||
"refresh": 1,
|
||||
"regex": "",
|
||||
"skipUrlSync": false,
|
||||
"type": "datasource"
|
||||
}
|
||||
]
|
||||
},
|
||||
"time": {"from": "now-15m", "to": "now"},
|
||||
"title": "Lab6 Worker",
|
||||
"uid": "lab6-worker",
|
||||
"version": 1
|
||||
"uid": "lab6-worker"
|
||||
}
|
||||
Reference in New Issue
Block a user