Skip to content

Commit c94b115

Browse files
matijapetanjekigorbeslic
authored andcommitted
745 - add grafana dashboard definition for logs
1 parent 9f4730c commit c94b115

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: 1
2+
3+
providers:
4+
- name: dashboards
5+
type: file
6+
disableDeletion: true
7+
editable: true
8+
options:
9+
path: /etc/grafana/provisioning/dashboards
10+
foldersFromFilesStructure: true
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"annotations": {
3+
"list": [
4+
{
5+
"builtIn": 1,
6+
"datasource": {
7+
"type": "grafana",
8+
"uid": "-- Grafana --"
9+
},
10+
"enable": true,
11+
"hide": true,
12+
"iconColor": "rgba(0, 211, 255, 1)",
13+
"name": "Annotations & Alerts",
14+
"target": {
15+
"limit": 100,
16+
"matchAny": false,
17+
"tags": [],
18+
"type": "dashboard"
19+
},
20+
"type": "dashboard"
21+
}
22+
]
23+
},
24+
"editable": true,
25+
"fiscalYearStartMonth": 0,
26+
"graphTooltip": 0,
27+
"id": 3,
28+
"links": [],
29+
"liveNow": false,
30+
"panels": [
31+
{
32+
"datasource": {
33+
"type": "loki",
34+
"uid": "loki"
35+
},
36+
"description": "",
37+
"gridPos": {
38+
"h": 10,
39+
"w": 23,
40+
"x": 0,
41+
"y": 0
42+
},
43+
"id": 2,
44+
"options": {
45+
"dedupStrategy": "none",
46+
"enableLogDetails": true,
47+
"prettifyLogMessage": true,
48+
"showCommonLabels": true,
49+
"showLabels": true,
50+
"showTime": true,
51+
"sortOrder": "Ascending",
52+
"wrapLogMessage": true
53+
},
54+
"targets": [
55+
{
56+
"datasource": {
57+
"type": "loki",
58+
"uid": "loki"
59+
},
60+
"editorMode": "builder",
61+
"expr": "{app=~\".+\"} |= `$traceId`",
62+
"queryType": "range",
63+
"refId": "A"
64+
}
65+
],
66+
"title": "Logs with trace ID $traceId",
67+
"type": "logs"
68+
}
69+
],
70+
"schemaVersion": 1,
71+
"tags": [],
72+
"templating": {
73+
"list": [
74+
{
75+
"current": {
76+
"selected": false
77+
},
78+
"description": "Trace Id",
79+
"hide": 0,
80+
"includeAll": false,
81+
"label": "Trace ID",
82+
"multi": false,
83+
"name": "traceId",
84+
"options": [],
85+
"query": "",
86+
"queryValue": "",
87+
"skipUrlSync": false,
88+
"type": "custom"
89+
}
90+
]
91+
},
92+
"time": {
93+
"from": "now-15m",
94+
"to": "now"
95+
},
96+
"timepicker": {},
97+
"timezone": "",
98+
"title": "Logs",
99+
"uid": "edz2d9w1so8aoa",
100+
"version": 1,
101+
"weekStart": ""
102+
}

0 commit comments

Comments
 (0)