data: Update the grafana dashboard
Some checks are pending
lint / linting (push) Waiting to run

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2025-02-09 09:48:28 +01:00
parent 7c6ac855d8
commit 75e64d51d8
No known key found for this signature in database

View file

@ -21,7 +21,7 @@
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "11.3.2" "version": "11.3.3"
}, },
{ {
"type": "datasource", "type": "datasource",
@ -91,7 +91,8 @@
"value": null "value": null
} }
] ]
} },
"unit": "sishort"
}, },
"overrides": [] "overrides": []
}, },
@ -127,12 +128,12 @@
"text": {}, "text": {},
"valueMode": "color" "valueMode": "color"
}, },
"pluginVersion": "11.3.2", "pluginVersion": "11.3.3",
"targets": [ "targets": [
{ {
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\",user_agent_group=~\"$agent_group\"}) by (user_agent_group))", "expr": "topk($limit, 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}}",
@ -166,7 +167,8 @@
"value": null "value": null
} }
] ]
} },
"unit": "sishort"
}, },
"overrides": [] "overrides": []
}, },
@ -202,12 +204,12 @@
"text": {}, "text": {},
"valueMode": "color" "valueMode": "color"
}, },
"pluginVersion": "11.3.2", "pluginVersion": "11.3.3",
"targets": [ "targets": [
{ {
"editorMode": "builder", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\",host!~\"$exclude_host\"}) by (host))", "expr": "topk($limit,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}}",
@ -278,7 +280,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "11.3.2", "pluginVersion": "11.3.3",
"targets": [ "targets": [
{ {
"disableTextWrap": false, "disableTextWrap": false,
@ -349,7 +351,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "11.3.2", "pluginVersion": "11.3.3",
"targets": [ "targets": [
{ {
"editorMode": "code", "editorMode": "code",
@ -395,7 +397,8 @@
"value": null "value": null
} }
] ]
} },
"unit": "sishort"
}, },
"overrides": [] "overrides": []
}, },
@ -431,7 +434,7 @@
"text": {}, "text": {},
"valueMode": "color" "valueMode": "color"
}, },
"pluginVersion": "11.3.2", "pluginVersion": "11.3.3",
"targets": [ "targets": [
{ {
"editorMode": "code", "editorMode": "code",
@ -459,7 +462,8 @@
"refresh": "5m", "refresh": "5m",
"schemaVersion": 40, "schemaVersion": 40,
"tags": [ "tags": [
"iocaine" "iocaine",
"self-hosted"
], ],
"templating": { "templating": {
"list": [ "list": [
@ -499,6 +503,24 @@
"sort": 1, "sort": 1,
"type": "query" "type": "query"
}, },
{
"current": {
"text": "7",
"value": "7"
},
"description": "Limit the number of entries shown on the Trap Counters panels.",
"label": "Limit",
"name": "limit",
"options": [
{
"selected": true,
"text": "7",
"value": "7"
}
],
"query": "7",
"type": "textbox"
},
{ {
"current": { "current": {
"text": "", "text": "",
@ -527,6 +549,6 @@
"timezone": "browser", "timezone": "browser",
"title": "Iocaine", "title": "Iocaine",
"uid": "aec38snrfs4cgf", "uid": "aec38snrfs4cgf",
"version": 39, "version": 47,
"weekStart": "" "weekStart": ""
} }