Skip to content

Commit a954edf

Browse files
committed
feat(grafana): add drycc application logs
1 parent c10602b commit a954edf

5 files changed

Lines changed: 322 additions & 3613 deletions

File tree

Lines changed: 318 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,318 @@
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+
"description": "Application Logs. See also the Explore tab for ad-hoc log queries.",
25+
"editable": false,
26+
"fiscalYearStartMonth": 0,
27+
"graphTooltip": 1,
28+
"id": 61,
29+
"links": [
30+
{
31+
"asDropdown": false,
32+
"icon": "external link",
33+
"includeVars": true,
34+
"keepTime": true,
35+
"tags": [
36+
"drycc"
37+
],
38+
"targetBlank": false,
39+
"title": "Drycc",
40+
"tooltip": "",
41+
"type": "dashboards",
42+
"url": ""
43+
}
44+
],
45+
"panels": [
46+
{
47+
"datasource": {
48+
"type": "quickwit-quickwit-datasource",
49+
"uid": "application_logs"
50+
},
51+
"description": "[Query Language](https://quickwit.io/docs/reference/query-language)",
52+
"fieldConfig": {
53+
"defaults": {
54+
"color": {
55+
"mode": "palette-classic"
56+
},
57+
"custom": {
58+
"axisBorderShow": false,
59+
"axisCenteredZero": false,
60+
"axisColorMode": "text",
61+
"axisLabel": "",
62+
"axisPlacement": "auto",
63+
"axisSoftMin": 0,
64+
"barAlignment": 0,
65+
"barWidthFactor": 0.6,
66+
"drawStyle": "line",
67+
"fillOpacity": 0,
68+
"gradientMode": "none",
69+
"hideFrom": {
70+
"legend": false,
71+
"tooltip": false,
72+
"viz": false
73+
},
74+
"insertNulls": false,
75+
"lineInterpolation": "linear",
76+
"lineWidth": 1,
77+
"pointSize": 5,
78+
"scaleDistribution": {
79+
"type": "linear"
80+
},
81+
"showPoints": "auto",
82+
"spanNulls": false,
83+
"stacking": {
84+
"group": "A",
85+
"mode": "none"
86+
},
87+
"thresholdsStyle": {
88+
"mode": "off"
89+
}
90+
},
91+
"mappings": [],
92+
"thresholds": {
93+
"mode": "absolute",
94+
"steps": [
95+
{
96+
"color": "green"
97+
},
98+
{
99+
"color": "red",
100+
"value": 80
101+
}
102+
]
103+
}
104+
},
105+
"overrides": []
106+
},
107+
"gridPos": {
108+
"h": 4,
109+
"w": 24,
110+
"x": 0,
111+
"y": 0
112+
},
113+
"id": 2,
114+
"interval": "1m",
115+
"options": {
116+
"legend": {
117+
"calcs": [],
118+
"displayMode": "list",
119+
"placement": "bottom",
120+
"showLegend": false
121+
},
122+
"tooltip": {
123+
"hideZeros": false,
124+
"mode": "single",
125+
"sort": "none"
126+
}
127+
},
128+
"pluginVersion": "12.0.2",
129+
"targets": [
130+
{
131+
"alias": "",
132+
"bucketAggs": [
133+
{
134+
"field": "",
135+
"id": "2",
136+
"settings": {
137+
"interval": "auto"
138+
},
139+
"type": "date_histogram"
140+
}
141+
],
142+
"datasource": {
143+
"type": "quickwit-quickwit-datasource",
144+
"uid": "application_logs"
145+
},
146+
"metrics": [
147+
{
148+
"id": "1",
149+
"type": "count"
150+
}
151+
],
152+
"query": "kubernetes.namespace_name:${app:singlequote} kubernetes.pod_name:${instance:singlequote} ${query:text}",
153+
"refId": "A",
154+
"timeField": ""
155+
}
156+
],
157+
"title": "Logs volume",
158+
"type": "timeseries"
159+
},
160+
{
161+
"datasource": {
162+
"type": "quickwit-quickwit-datasource",
163+
"uid": "application_logs"
164+
},
165+
"description": "",
166+
"fieldConfig": {
167+
"defaults": {},
168+
"overrides": []
169+
},
170+
"gridPos": {
171+
"h": 17,
172+
"w": 24,
173+
"x": 0,
174+
"y": 4
175+
},
176+
"id": 1,
177+
"options": {
178+
"dedupStrategy": "none",
179+
"enableInfiniteScrolling": false,
180+
"enableLogDetails": true,
181+
"prettifyLogMessage": true,
182+
"showCommonLabels": false,
183+
"showLabels": false,
184+
"showTime": true,
185+
"sortOrder": "Descending",
186+
"wrapLogMessage": true
187+
},
188+
"pluginVersion": "12.0.2",
189+
"targets": [
190+
{
191+
"alias": "",
192+
"bucketAggs": [
193+
{
194+
"field": "",
195+
"id": "2",
196+
"settings": {
197+
"interval": "auto"
198+
},
199+
"type": "date_histogram"
200+
}
201+
],
202+
"datasource": {
203+
"type": "quickwit-quickwit-datasource",
204+
"uid": "application_logs"
205+
},
206+
"metrics": [
207+
{
208+
"id": "1",
209+
"settings": {},
210+
"type": "logs"
211+
}
212+
],
213+
"query": "kubernetes.namespace_name:${app:singlequote} kubernetes.pod_name:${instance:singlequote} ${query:text}",
214+
"refId": "A",
215+
"timeField": ""
216+
}
217+
],
218+
"title": "Application Logs",
219+
"type": "logs"
220+
}
221+
],
222+
"preload": false,
223+
"refresh": "",
224+
"schemaVersion": 41,
225+
"tags": [],
226+
"templating": {
227+
"list": [
228+
{
229+
"current": {
230+
"text": "",
231+
"value": ""
232+
},
233+
"label": "Query",
234+
"name": "query",
235+
"options": [
236+
{
237+
"selected": true,
238+
"text": "",
239+
"value": ""
240+
}
241+
],
242+
"query": "",
243+
"type": "textbox"
244+
},
245+
{
246+
"allValue": "*",
247+
"current": {
248+
"text": "All",
249+
"value": "$__all"
250+
},
251+
"datasource": {
252+
"type": "prometheus",
253+
"uid": "prometheus_on_drycc"
254+
},
255+
"definition": "label_values(namespace)",
256+
"includeAll": true,
257+
"label": "App",
258+
"name": "app",
259+
"options": [],
260+
"query": {
261+
"qryType": 1,
262+
"query": "label_values(namespace)",
263+
"refId": "PrometheusVariableQueryEditor-VariableQuery"
264+
},
265+
"refresh": 1,
266+
"regex": "",
267+
"type": "query"
268+
},
269+
{
270+
"allValue": "*",
271+
"current": {
272+
"text": "All",
273+
"value": "$__all"
274+
},
275+
"datasource": {
276+
"type": "prometheus",
277+
"uid": "prometheus_on_drycc"
278+
},
279+
"definition": "label_values({namespace=\"$app\"},pod)",
280+
"includeAll": true,
281+
"label": "Instance",
282+
"name": "instance",
283+
"options": [],
284+
"query": {
285+
"qryType": 1,
286+
"query": "label_values({namespace=\"$app\"},pod)",
287+
"refId": "PrometheusVariableQueryEditor-VariableQuery"
288+
},
289+
"refresh": 1,
290+
"regex": "",
291+
"sort": 5,
292+
"type": "query"
293+
},
294+
{
295+
"allowCustomValue": true,
296+
"baseFilters": [],
297+
"datasource": {
298+
"type": "datasource",
299+
"uid": "grafana"
300+
},
301+
"description": "",
302+
"filters": [],
303+
"hide": 2,
304+
"name": "filter",
305+
"type": "adhoc"
306+
}
307+
]
308+
},
309+
"time": {
310+
"from": "now-1h",
311+
"to": "now"
312+
},
313+
"timepicker": {},
314+
"timezone": "",
315+
"title": "Drycc Logs",
316+
"uid": "aepz8ewtzq4g0f",
317+
"version": 20
318+
}

0 commit comments

Comments
 (0)