data: Update the Grafana dashboard
Some checks failed
build / binary (push) Waiting to run
build / binary-static (x86_64-linux) (push) Waiting to run
build / container (push) Waiting to run
build / clippy (push) Waiting to run
lint / linting (push) Waiting to run
documentation / documentation (push) Has been cancelled
documentation / notification (push) Has been cancelled

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2025-02-06 22:07:17 +01:00
parent 4cc634e07e
commit 9dfe654ef0
No known key found for this signature in database

View file

@ -132,7 +132,7 @@
{ {
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\", user_agent_group=~\"$agent_group\"}) by (user_agent_group))", "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\",user_agent_group=~\"$agent_group\"}) by (user_agent_group))",
"format": "time_series", "format": "time_series",
"instant": true, "instant": true,
"legendFormat": "{{user_agent_group}}", "legendFormat": "{{user_agent_group}}",
@ -205,9 +205,9 @@
"pluginVersion": "11.3.2", "pluginVersion": "11.3.2",
"targets": [ "targets": [
{ {
"editorMode": "code", "editorMode": "builder",
"exemplar": false, "exemplar": false,
"expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\"}) by (host))", "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\",host!~\"$exclude_host\"}) by (host))",
"format": "time_series", "format": "time_series",
"instant": true, "instant": true,
"legendFormat": "{{host}}", "legendFormat": "{{host}}",
@ -255,7 +255,7 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 9, "h": 5,
"w": 4, "w": 4,
"x": 20, "x": 20,
"y": 1 "y": 1
@ -298,7 +298,72 @@
} }
} }
], ],
"title": "Average throughput (5m)", "title": "Req/s (5m avg)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 20,
"y": 6
},
"id": 7,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.3.2",
"targets": [
{
"editorMode": "code",
"expr": "time() - process_start_time_seconds{service=\"iocaine\"}",
"legendFormat": "__auto",
"range": true,
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}
],
"title": "Uptime",
"type": "stat" "type": "stat"
}, },
{ {
@ -326,7 +391,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
} }
] ]
} }
@ -370,7 +436,7 @@
{ {
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\", user_agent_group=~\"$agent_group\"}) by (user_agent, user_agent_group))", "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\", user_agent_group=~\"$agent_group\"}) by (user_agent, user_agent_group))",
"format": "time_series", "format": "time_series",
"instant": true, "instant": true,
"legendFormat": "{{user_agent_group}}: {{user_agent}}", "legendFormat": "{{user_agent_group}}: {{user_agent}}",
@ -390,7 +456,7 @@
"type": "row" "type": "row"
} }
], ],
"refresh": "1m", "refresh": "5m",
"schemaVersion": 40, "schemaVersion": 40,
"tags": [ "tags": [
"iocaine" "iocaine"
@ -432,17 +498,35 @@
"regex": "", "regex": "",
"sort": 1, "sort": 1,
"type": "query" "type": "query"
},
{
"current": {
"text": "",
"value": ""
},
"description": "Host name (regex) to exclude.",
"label": "Exclude",
"name": "exclude_host",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"type": "textbox"
} }
] ]
}, },
"time": { "time": {
"from": "now-1h", "from": "now-24h",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "browser", "timezone": "browser",
"title": "Iocaine", "title": "Iocaine",
"uid": "aec38snrfs4cgf", "uid": "aec38snrfs4cgf",
"version": 31, "version": 39,
"weekStart": "" "weekStart": ""
} }