mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-02-23 18:08: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",
|
||||
"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": ""
|
||||
}
|
Loading…
Reference in a new issue