📊 feat(grafana): add Total Requests and Requests/sec to Key Metrics

- Added Total Requests counter for overall user interaction
- Added Requests/sec for current load visibility
- Reduced panel width to fit 8 metrics in one row

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-01 12:32:01 +01:00
parent e7719eeba0
commit edbf775f37

View file

@ -45,7 +45,7 @@
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 },
"gridPos": { "h": 4, "w": 3, "x": 0, "y": 1 },
"id": 101,
"options": {
"colorMode": "background",
@ -85,7 +85,7 @@
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 },
"gridPos": { "h": 4, "w": 3, "x": 3, "y": 1 },
"id": 102,
"options": {
"colorMode": "background",
@ -126,7 +126,7 @@
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 },
"gridPos": { "h": 4, "w": 3, "x": 6, "y": 1 },
"id": 103,
"options": {
"colorMode": "background",
@ -166,7 +166,7 @@
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 },
"gridPos": { "h": 4, "w": 3, "x": 9, "y": 1 },
"id": 7,
"options": {
"colorMode": "background",
@ -192,6 +192,86 @@
"title": "Total Users",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [{ "color": "orange", "value": null }]
},
"unit": "short"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 3, "x": 12, "y": 1 },
"id": 106,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(http_requests_total)",
"legendFormat": "Total",
"refId": "A"
}
],
"title": "Total Requests",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [{ "color": "semi-dark-yellow", "value": null }]
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": { "h": 4, "w": 3, "x": 15, "y": 1 },
"id": 107,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.0",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"expr": "sum(rate(http_requests_total[5m]))",
"legendFormat": "Req/s",
"refId": "A"
}
],
"title": "Requests/sec",
"type": "stat"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
@ -210,7 +290,7 @@
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 },
"gridPos": { "h": 4, "w": 3, "x": 18, "y": 1 },
"id": 104,
"options": {
"colorMode": "background",
@ -233,7 +313,7 @@
"refId": "A"
}
],
"title": "Avg Response Time",
"title": "Avg Response",
"type": "stat"
},
{
@ -254,7 +334,7 @@
},
"overrides": []
},
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 },
"gridPos": { "h": 4, "w": 3, "x": 21, "y": 1 },
"id": 9,
"options": {
"colorMode": "background",