add log level selector to anyway dashboard
This commit is contained in:
parent
2973551883
commit
f9f33dfd7a
@ -88,7 +88,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -166,7 +166,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -202,6 +202,7 @@
|
|||||||
"id": 2,
|
"id": 2,
|
||||||
"options": {
|
"options": {
|
||||||
"dedupStrategy": "none",
|
"dedupStrategy": "none",
|
||||||
|
"enableInfiniteScrolling": false,
|
||||||
"enableLogDetails": true,
|
"enableLogDetails": true,
|
||||||
"prettifyLogMessage": false,
|
"prettifyLogMessage": false,
|
||||||
"showCommonLabels": false,
|
"showCommonLabels": false,
|
||||||
@ -210,15 +211,16 @@
|
|||||||
"sortOrder": "Descending",
|
"sortOrder": "Descending",
|
||||||
"wrapLogMessage": false
|
"wrapLogMessage": false
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "loki",
|
"type": "loki",
|
||||||
"uid": "P8E80F9AEF21F6940"
|
"uid": "P8E80F9AEF21F6940"
|
||||||
},
|
},
|
||||||
|
"direction": "backward",
|
||||||
"editorMode": "code",
|
"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,
|
"hide": false,
|
||||||
"queryType": "range",
|
"queryType": "range",
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
@ -283,11 +285,12 @@
|
|||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -349,11 +352,12 @@
|
|||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -427,7 +431,7 @@
|
|||||||
"showThresholdMarkers": false,
|
"showThresholdMarkers": false,
|
||||||
"sizing": "auto"
|
"sizing": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -526,11 +530,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
"sort": "desc"
|
"sort": "desc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -625,11 +630,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
"sort": "desc"
|
"sort": "desc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -778,11 +784,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
"sort": "desc"
|
"sort": "desc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -817,6 +824,7 @@
|
|||||||
"id": 21,
|
"id": 21,
|
||||||
"options": {
|
"options": {
|
||||||
"dedupStrategy": "none",
|
"dedupStrategy": "none",
|
||||||
|
"enableInfiniteScrolling": false,
|
||||||
"enableLogDetails": true,
|
"enableLogDetails": true,
|
||||||
"prettifyLogMessage": false,
|
"prettifyLogMessage": false,
|
||||||
"showCommonLabels": false,
|
"showCommonLabels": false,
|
||||||
@ -825,7 +833,7 @@
|
|||||||
"sortOrder": "Descending",
|
"sortOrder": "Descending",
|
||||||
"wrapLogMessage": false
|
"wrapLogMessage": false
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.4.0",
|
"pluginVersion": "11.5.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -883,6 +891,27 @@
|
|||||||
],
|
],
|
||||||
"query": "",
|
"query": "",
|
||||||
"type": "textbox"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user