Skip to content

Commit

Permalink
feat: added container logs
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Schlegel <armin.schlegel@gmx.de>
  • Loading branch information
siredmar committed Jan 5, 2023
1 parent 41f9b32 commit cc44cea
Showing 1 changed file with 49 additions and 20 deletions.
69 changes: 49 additions & 20 deletions dashboards/edge_system_logs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
{
"__inputs": [
{
"name": "DS_LOKI",
"label": "Loki",
"description": "",
"type": "datasource",
"pluginId": "loki",
"pluginName": "Loki"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.2.4"
},
{
"type": "panel",
"id": "logs",
"name": "Logs",
"version": ""
},
{
"type": "datasource",
"id": "loki",
"name": "Loki",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -24,14 +61,14 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 9,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
"uid": "${DS_LOKI}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -82,7 +119,7 @@
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
"uid": "${DS_LOKI}"
},
"editorMode": "builder",
"expr": "sum(count_over_time({edge_node=\"$node\", filename=\"$type\"} |= `` [$__interval]))",
Expand All @@ -96,7 +133,7 @@
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
"uid": "${DS_LOKI}"
},
"gridPos": {
"h": 30,
Expand All @@ -119,7 +156,7 @@
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
"uid": "${DS_LOKI}"
},
"editorMode": "builder",
"expr": "{edge_node=\"$node\", filename=\"$type\"} |= ``",
Expand All @@ -141,14 +178,10 @@
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "virtual-c087e7a9",
"value": "virtual-c087e7a9"
},
"current": {},
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
"uid": "${DS_LOKI}"
},
"definition": "",
"hide": 0,
Expand All @@ -170,14 +203,10 @@
"type": "query"
},
{
"current": {
"selected": false,
"text": "/var/log/kern.log",
"value": "/var/log/kern.log"
},
"current": {},
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
"uid": "${DS_LOKI}"
},
"definition": "",
"hide": 0,
Expand All @@ -189,7 +218,7 @@
"query": {
"label": "filename",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "{edge_node=\"catfish\", filename=~\"/var/log/syslog|/var/log/kern.log\"} ",
"stream": "{edge_node=\"$node\"} ",
"type": 1
},
"refresh": 1,
Expand All @@ -208,6 +237,6 @@
"timezone": "",
"title": "Edge Node: system logs",
"uid": "memTN3F4k",
"version": 3,
"version": 1,
"weekStart": ""
}
}

0 comments on commit cc44cea

Please sign in to comment.