From 75e64d51d8e5cbca46af1436638b27172d546452 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 9 Feb 2025 09:48:28 +0100 Subject: [PATCH] data: Update the grafana dashboard Signed-off-by: Gergely Nagy --- data/grafana-dashboard.json | 50 ++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/data/grafana-dashboard.json b/data/grafana-dashboard.json index 2c69d06..c054c05 100644 --- a/data/grafana-dashboard.json +++ b/data/grafana-dashboard.json @@ -21,7 +21,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "11.3.2" + "version": "11.3.3" }, { "type": "datasource", @@ -91,7 +91,8 @@ "value": null } ] - } + }, + "unit": "sishort" }, "overrides": [] }, @@ -127,12 +128,12 @@ "text": {}, "valueMode": "color" }, - "pluginVersion": "11.3.2", + "pluginVersion": "11.3.3", "targets": [ { "editorMode": "code", "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", "instant": true, "legendFormat": "{{user_agent_group}}", @@ -166,7 +167,8 @@ "value": null } ] - } + }, + "unit": "sishort" }, "overrides": [] }, @@ -202,12 +204,12 @@ "text": {}, "valueMode": "color" }, - "pluginVersion": "11.3.2", + "pluginVersion": "11.3.3", "targets": [ { - "editorMode": "builder", + "editorMode": "code", "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", "instant": true, "legendFormat": "{{host}}", @@ -278,7 +280,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.3.2", + "pluginVersion": "11.3.3", "targets": [ { "disableTextWrap": false, @@ -349,7 +351,7 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "11.3.2", + "pluginVersion": "11.3.3", "targets": [ { "editorMode": "code", @@ -395,7 +397,8 @@ "value": null } ] - } + }, + "unit": "sishort" }, "overrides": [] }, @@ -431,7 +434,7 @@ "text": {}, "valueMode": "color" }, - "pluginVersion": "11.3.2", + "pluginVersion": "11.3.3", "targets": [ { "editorMode": "code", @@ -459,7 +462,8 @@ "refresh": "5m", "schemaVersion": 40, "tags": [ - "iocaine" + "iocaine", + "self-hosted" ], "templating": { "list": [ @@ -499,6 +503,24 @@ "sort": 1, "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": { "text": "", @@ -527,6 +549,6 @@ "timezone": "browser", "title": "Iocaine", "uid": "aec38snrfs4cgf", - "version": 39, + "version": 47, "weekStart": "" } \ No newline at end of file