mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-02-24 02:18:47 +01:00
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
parent
7c6ac855d8
commit
75e64d51d8
1 changed files with 36 additions and 14 deletions
|
@ -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": ""
|
||||||
}
|
}
|
Loading…
Reference in a new issue