Files
mtusi2026lab6-fork/observability/grafana/dashboards/worker.json
T
2026-11-27 07:52:15 +03:00

66 lines
1.8 KiB
JSON

{
"annotations": {"list": []},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
"fieldConfig": {"defaults": {"unit": "short"}, "overrides": []},
"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"
}
],
"title": "Worker Jobs (success/fail)",
"type": "timeseries"
},
{
"datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
"fieldConfig": {"defaults": {"unit": "s"}, "overrides": []},
"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"
}
],
"title": "Worker Duration p95",
"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
}