add log level selector to anyway dashboard

This commit is contained in:
Remy Moll 2025-02-17 12:05:00 +01:00
parent 2973551883
commit f9f33dfd7a

View File

@ -88,7 +88,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -166,7 +166,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -202,6 +202,7 @@
"id": 2,
"options": {
"dedupStrategy": "none",
"enableInfiniteScrolling": false,
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
@ -210,15 +211,16 @@
"sortOrder": "Descending",
"wrapLogMessage": false
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"direction": "backward",
"editorMode": "code",
"expr": "{app=\"anyway\", environment=~\"$environment\"} |~ \"(?i)$searchable_pattern\" | json | name != \"uvicorn.access\" | line_format \"{{ .message }}\"",
"expr": "{app=\"anyway\", environment=~\"$environment\"} | json | name != \"uvicorn.access\" \n| detected_level=~\"(?i)^(debug|info|warn|error)$\" \n| detected_level=~\"(?i)$logLevel|info|warn|error\" | line_format \"{{ .message }}\"\n",
"hide": false,
"queryType": "range",
"refId": "A"
@ -283,11 +285,12 @@
"values": false
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -349,11 +352,12 @@
"values": false
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -427,7 +431,7 @@
"showThresholdMarkers": false,
"sizing": "auto"
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -526,11 +530,12 @@
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -625,11 +630,12 @@
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -778,11 +784,12 @@
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -817,6 +824,7 @@
"id": 21,
"options": {
"dedupStrategy": "none",
"enableInfiniteScrolling": false,
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
@ -825,7 +833,7 @@
"sortOrder": "Descending",
"wrapLogMessage": false
},
"pluginVersion": "11.4.0",
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
@ -883,6 +891,27 @@
],
"query": "",
"type": "textbox"
},
{
"current": {
"text": "debug",
"value": "debug"
},
"name": "LogLevel",
"options": [
{
"selected": false,
"text": "info",
"value": "info"
},
{
"selected": true,
"text": "debug",
"value": "debug"
}
],
"query": "info, debug",
"type": "custom"
}
]
},