Skip to content

Commit 97f52de

Browse files
committed
embed node errors dashboard
1 parent e9eee46 commit 97f52de

File tree

2 files changed

+305
-0
lines changed

2 files changed

+305
-0
lines changed
Lines changed: 304 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,304 @@
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+
"type": "dashboard"
15+
}
16+
]
17+
},
18+
"editable": true,
19+
"fiscalYearStartMonth": 0,
20+
"graphTooltip": 0,
21+
"id": 4,
22+
"links": [],
23+
"liveNow": false,
24+
"panels": [
25+
{
26+
"datasource": {
27+
"type": "loki",
28+
"uid": "P8E80F9AEF21F6940"
29+
},
30+
"description": "Err/Wrn Count",
31+
"fieldConfig": {
32+
"defaults": {
33+
"color": {
34+
"mode": "palette-classic"
35+
},
36+
"custom": {
37+
"axisCenteredZero": false,
38+
"axisColorMode": "text",
39+
"axisLabel": "",
40+
"axisPlacement": "auto",
41+
"barAlignment": 0,
42+
"drawStyle": "line",
43+
"fillOpacity": 0,
44+
"gradientMode": "none",
45+
"hideFrom": {
46+
"legend": false,
47+
"tooltip": false,
48+
"viz": false
49+
},
50+
"insertNulls": false,
51+
"lineInterpolation": "linear",
52+
"lineWidth": 1,
53+
"pointSize": 5,
54+
"scaleDistribution": {
55+
"type": "linear"
56+
},
57+
"showPoints": "auto",
58+
"spanNulls": false,
59+
"stacking": {
60+
"group": "A",
61+
"mode": "none"
62+
},
63+
"thresholdsStyle": {
64+
"mode": "off"
65+
}
66+
},
67+
"mappings": [],
68+
"thresholds": {
69+
"mode": "absolute",
70+
"steps": [
71+
{
72+
"color": "green",
73+
"value": null
74+
},
75+
{
76+
"color": "red",
77+
"value": 80
78+
}
79+
]
80+
}
81+
},
82+
"overrides": []
83+
},
84+
"gridPos": {
85+
"h": 10,
86+
"w": 13,
87+
"x": 0,
88+
"y": 0
89+
},
90+
"id": 2,
91+
"options": {
92+
"legend": {
93+
"calcs": [],
94+
"displayMode": "table",
95+
"placement": "right",
96+
"showLegend": true
97+
},
98+
"tooltip": {
99+
"mode": "single",
100+
"sort": "none"
101+
}
102+
},
103+
"targets": [
104+
{
105+
"datasource": {
106+
"type": "loki"
107+
},
108+
"editorMode": "code",
109+
"expr": "sum(count_over_time({job=\"ctf\", container=~\".*node.*\"} \n | json \n | level=\"error\" [$__interval])) by (logger)",
110+
"legendFormat": "ERR {{logger}}",
111+
"queryType": "range",
112+
"refId": "A"
113+
},
114+
{
115+
"datasource": {
116+
"type": "loki"
117+
},
118+
"editorMode": "code",
119+
"expr": "sum(count_over_time({job=\"ctf\", container=~\".*node.*\"} \n | json \n | level=\"warn\" [$__interval])) by (logger)",
120+
"hide": false,
121+
"legendFormat": "WRN {{logger}}",
122+
"queryType": "range",
123+
"refId": "B"
124+
}
125+
],
126+
"title": "Err/Wrn Count",
127+
"transparent": true,
128+
"type": "timeseries"
129+
},
130+
{
131+
"datasource": {
132+
"type": "loki",
133+
"uid": "P8E80F9AEF21F6940"
134+
},
135+
"description": "Err/Wrn Distribution",
136+
"fieldConfig": {
137+
"defaults": {
138+
"color": {
139+
"mode": "palette-classic"
140+
},
141+
"custom": {
142+
"hideFrom": {
143+
"legend": false,
144+
"tooltip": false,
145+
"viz": false
146+
}
147+
},
148+
"mappings": []
149+
},
150+
"overrides": []
151+
},
152+
"gridPos": {
153+
"h": 10,
154+
"w": 10,
155+
"x": 14,
156+
"y": 0
157+
},
158+
"id": 4,
159+
"options": {
160+
"legend": {
161+
"displayMode": "list",
162+
"placement": "right",
163+
"showLegend": true
164+
},
165+
"pieType": "donut",
166+
"reduceOptions": {
167+
"calcs": [
168+
"lastNotNull"
169+
],
170+
"fields": "",
171+
"values": false
172+
},
173+
"tooltip": {
174+
"mode": "single",
175+
"sort": "none"
176+
}
177+
},
178+
"targets": [
179+
{
180+
"datasource": {
181+
"type": "loki"
182+
},
183+
"editorMode": "code",
184+
"expr": "sum(count_over_time({job=\"ctf\", container=~\".*node.*\"} \n | json \n | level=\"error\" [$__interval])) by (logger)",
185+
"legendFormat": "ERR {{logger}}",
186+
"queryType": "range",
187+
"refId": "A"
188+
},
189+
{
190+
"datasource": {
191+
"type": "loki"
192+
},
193+
"editorMode": "code",
194+
"expr": "sum(count_over_time({job=\"ctf\", container=~\".*node.*\"} \n | json \n | level=\"warn\" [$__interval])) by (logger)",
195+
"hide": false,
196+
"legendFormat": "WRN {{logger}}",
197+
"queryType": "range",
198+
"refId": "B"
199+
}
200+
],
201+
"title": "Err/Wrn Distribution",
202+
"transparent": true,
203+
"type": "piechart"
204+
},
205+
{
206+
"datasource": {
207+
"type": "loki",
208+
"uid": "P8E80F9AEF21F6940"
209+
},
210+
"description": "Node Errors",
211+
"gridPos": {
212+
"h": 7,
213+
"w": 24,
214+
"x": 0,
215+
"y": 10
216+
},
217+
"id": 1,
218+
"options": {
219+
"dedupStrategy": "none",
220+
"enableLogDetails": true,
221+
"prettifyLogMessage": false,
222+
"showCommonLabels": false,
223+
"showLabels": false,
224+
"showTime": false,
225+
"sortOrder": "Descending",
226+
"wrapLogMessage": false
227+
},
228+
"pluginVersion": "10.2.6",
229+
"targets": [
230+
{
231+
"datasource": {
232+
"type": "loki"
233+
},
234+
"editorMode": "code",
235+
"expr": "{job=\"ctf\", container=~\".*node.*\"}\n | json \n | level=\"error\" \n | logfmt \n | line_format \"{{.container }} {{.logger }} {{.msg }} {{.err}}\"",
236+
"legendFormat": "",
237+
"queryType": "range",
238+
"refId": "A"
239+
}
240+
],
241+
"title": "Node Errors",
242+
"transformations": [],
243+
"transparent": true,
244+
"type": "logs"
245+
},
246+
{
247+
"datasource": {
248+
"type": "loki",
249+
"uid": "P8E80F9AEF21F6940"
250+
},
251+
"description": "Node Warnings",
252+
"gridPos": {
253+
"h": 6,
254+
"w": 24,
255+
"x": 0,
256+
"y": 17
257+
},
258+
"id": 3,
259+
"options": {
260+
"dedupStrategy": "none",
261+
"enableLogDetails": true,
262+
"prettifyLogMessage": false,
263+
"showCommonLabels": false,
264+
"showLabels": false,
265+
"showTime": false,
266+
"sortOrder": "Descending",
267+
"wrapLogMessage": false
268+
},
269+
"pluginVersion": "10.2.6",
270+
"targets": [
271+
{
272+
"datasource": {
273+
"type": "loki"
274+
},
275+
"editorMode": "code",
276+
"expr": "{job=\"ctf\", container=~\".*node.*\"} \n | json \n | level=\"warn\" \n | logfmt \n | line_format \"{{.container }} {{.logger }} {{.msg }} {{.err}}\"",
277+
"queryType": "range",
278+
"refId": "A"
279+
}
280+
],
281+
"title": "Node Warnings",
282+
"transformations": [],
283+
"transparent": true,
284+
"type": "logs"
285+
}
286+
],
287+
"refresh": "",
288+
"schemaVersion": 38,
289+
"style": "dark",
290+
"tags": [],
291+
"templating": {
292+
"list": []
293+
},
294+
"time": {
295+
"from": "now-15m",
296+
"to": "now"
297+
},
298+
"timepicker": {},
299+
"timezone": "",
300+
"title": "CL Node Errors",
301+
"uid": "a7de535b-3e0f-4066-bed7-d505b6ec9ef1",
302+
"version": 1,
303+
"weekStart": ""
304+
}

framework/cmd/observability/compose/docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ services:
7171
- ./conf/provisioning/dashboards/wasp/wasp.json:/var/lib/grafana/dashboards/wasp/wasp.json
7272
- ./conf/provisioning/dashboards/pg/pg.json:/var/lib/grafana/dashboards/pg/pg.json
7373
- ./conf/provisioning/dashboards/cadvisor/cadvisor.json:/var/lib/grafana/dashboards/cadvisor/cadvisor.json
74+
- ./conf/provisioning/dashboards/clnode-errors/errors.json:/var/lib/grafana/dashboards/clnode-errors/errors.json
7475
ports:
7576
- '3000:3000'
7677
depends_on:

0 commit comments

Comments
 (0)