Skip to content

Commit

Permalink
Merge pull request #12279 from simondeziel/grafana-loki
Browse files Browse the repository at this point in the history
grafana: add Loki logs section with lifecycle and logging events
  • Loading branch information
tomponline authored Sep 20, 2023
2 parents 9019ad5 + 345ecb0 commit 2f5af8e
Showing 1 changed file with 108 additions and 1 deletion.
109 changes: 108 additions & 1 deletion grafana/LXD.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
},
{
"name": "DS_LOKI",
"label": "Loki",
"description": "Loki instance for LXD",
"type": "datasource",
"pluginId": "loki",
"pluginName": "Loki"
}
],
"__elements": {},
Expand All @@ -17,6 +25,18 @@
"name": "Grafana",
"version": "9.3.2"
},
{
"type": "panel",
"id": "logs",
"name": "Logs",
"version": ""
},
{
"type": "datasource",
"id": "loki",
"name": "Loki",
"version": "1.0.0"
},
{
"type": "panel",
"id": "piechart",
Expand Down Expand Up @@ -3631,6 +3651,93 @@
"repeat": "name",
"title": "Instance: $name",
"type": "row"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 60
},
"id": 521,
"panels": [],
"title": "Loki logs",
"type": "row"
},
{
"datasource": {
"type": "loki",
"uid": "${DS_LOKI}"
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 61
},
"id": 572,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${DS_LOKI}"
},
"editorMode": "builder",
"expr": "{app=\"lxd\", type=\"lifecycle\"}",
"queryType": "range",
"refId": "A"
}
],
"title": "Lifecycle event logs",
"type": "logs"
},
{
"datasource": {
"type": "loki",
"uid": "${DS_LOKI}"
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 68
},
"id": 573,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${DS_LOKI}"
},
"editorMode": "builder",
"expr": "{app=\"lxd\", type=\"logging\"}",
"queryType": "range",
"refId": "A"
}
],
"title": "Event logs",
"type": "logs"
}
],
"refresh": false,
Expand Down Expand Up @@ -3789,6 +3896,6 @@
"timezone": "",
"title": "LXD",
"uid": "bGY-LSB7k",
"version": 14,
"version": 15,
"weekStart": ""
}

0 comments on commit 2f5af8e

Please sign in to comment.