Skip to content

Commit 068862a

Browse files
upd dashboard
Signed-off-by: Nikita Korolev <[email protected]>
1 parent 8250f99 commit 068862a

File tree

2 files changed

+395
-1133
lines changed

2 files changed

+395
-1133
lines changed
Lines changed: 395 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,395 @@
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": 47,
22+
"links": [],
23+
"panels": [
24+
{
25+
"datasource": {
26+
"type": "loki",
27+
"uid": "${ds_loki}"
28+
},
29+
"fieldConfig": {
30+
"defaults": {
31+
"color": {
32+
"mode": "palette-classic"
33+
},
34+
"custom": {
35+
"axisBorderShow": false,
36+
"axisCenteredZero": false,
37+
"axisColorMode": "text",
38+
"axisLabel": "",
39+
"axisPlacement": "auto",
40+
"barAlignment": 0,
41+
"drawStyle": "bars",
42+
"fillOpacity": 0,
43+
"gradientMode": "none",
44+
"hideFrom": {
45+
"legend": false,
46+
"tooltip": false,
47+
"viz": false
48+
},
49+
"insertNulls": false,
50+
"lineInterpolation": "linear",
51+
"lineWidth": 1,
52+
"pointSize": 5,
53+
"scaleDistribution": {
54+
"type": "linear"
55+
},
56+
"showPoints": "auto",
57+
"spanNulls": false,
58+
"stacking": {
59+
"group": "A",
60+
"mode": "none"
61+
},
62+
"thresholdsStyle": {
63+
"mode": "off"
64+
}
65+
},
66+
"mappings": [],
67+
"thresholds": {
68+
"mode": "absolute",
69+
"steps": [
70+
{
71+
"color": "green",
72+
"value": null
73+
},
74+
{
75+
"color": "red",
76+
"value": 80
77+
}
78+
]
79+
}
80+
},
81+
"overrides": []
82+
},
83+
"gridPos": {
84+
"h": 8,
85+
"w": 24,
86+
"x": 0,
87+
"y": 0
88+
},
89+
"id": 3,
90+
"options": {
91+
"legend": {
92+
"calcs": [
93+
"count"
94+
],
95+
"displayMode": "table",
96+
"placement": "right",
97+
"showLegend": true
98+
},
99+
"tooltip": {
100+
"mode": "single",
101+
"sort": "none"
102+
}
103+
},
104+
"targets": [
105+
{
106+
"datasource": {
107+
"type": "loki",
108+
"uid": "${ds_loki}"
109+
},
110+
"editorMode": "code",
111+
"expr": "sum by (request_subject,name) (count_over_time({namespace=\"d8-virtualization\", pod=~\"virtualization-audit-.+\"} | json | request_subject!~\".*(serviceaccount|system:.+).\" [$__interval]))",
112+
"legendFormat": "{{request_subject}} {{name}}",
113+
"queryType": "range",
114+
"refId": "A"
115+
}
116+
],
117+
"title": "User Accounts activity",
118+
"type": "timeseries"
119+
},
120+
{
121+
"datasource": {
122+
"type": "loki",
123+
"uid": "${ds_loki}"
124+
},
125+
"fieldConfig": {
126+
"defaults": {
127+
"color": {
128+
"mode": "thresholds"
129+
},
130+
"custom": {
131+
"align": "auto",
132+
"cellOptions": {
133+
"type": "auto"
134+
},
135+
"filterable": true,
136+
"inspect": false
137+
},
138+
"mappings": [],
139+
"thresholds": {
140+
"mode": "absolute",
141+
"steps": [
142+
{
143+
"color": "green",
144+
"value": null
145+
},
146+
{
147+
"color": "red",
148+
"value": 80
149+
}
150+
]
151+
}
152+
},
153+
"overrides": [
154+
{
155+
"matcher": {
156+
"id": "byName",
157+
"options": "Time"
158+
},
159+
"properties": [
160+
{
161+
"id": "custom.width",
162+
"value": 205
163+
}
164+
]
165+
},
166+
{
167+
"matcher": {
168+
"id": "byName",
169+
"options": "Type"
170+
},
171+
"properties": [
172+
{
173+
"id": "custom.width",
174+
"value": 160
175+
}
176+
]
177+
},
178+
{
179+
"matcher": {
180+
"id": "byName",
181+
"options": "level"
182+
},
183+
"properties": [
184+
{
185+
"id": "custom.width",
186+
"value": 49
187+
}
188+
]
189+
},
190+
{
191+
"matcher": {
192+
"id": "byName",
193+
"options": "name"
194+
},
195+
"properties": [
196+
{
197+
"id": "custom.width",
198+
"value": 164
199+
}
200+
]
201+
},
202+
{
203+
"matcher": {
204+
"id": "byName",
205+
"options": "datetime"
206+
},
207+
"properties": [
208+
{
209+
"id": "custom.width",
210+
"value": 176
211+
}
212+
]
213+
},
214+
{
215+
"matcher": {
216+
"id": "byName",
217+
"options": "uid"
218+
},
219+
"properties": [
220+
{
221+
"id": "custom.width",
222+
"value": 309
223+
}
224+
]
225+
},
226+
{
227+
"matcher": {
228+
"id": "byName",
229+
"options": "operation_result"
230+
},
231+
"properties": [
232+
{
233+
"id": "custom.width",
234+
"value": 132
235+
}
236+
]
237+
},
238+
{
239+
"matcher": {
240+
"id": "byName",
241+
"options": "action_type"
242+
},
243+
"properties": [
244+
{
245+
"id": "custom.width",
246+
"value": 109
247+
}
248+
]
249+
},
250+
{
251+
"matcher": {
252+
"id": "byName",
253+
"options": "component"
254+
},
255+
"properties": [
256+
{
257+
"id": "custom.width",
258+
"value": 193
259+
}
260+
]
261+
},
262+
{
263+
"matcher": {
264+
"id": "byName",
265+
"options": "type"
266+
},
267+
"properties": [
268+
{
269+
"id": "custom.width",
270+
"value": 158
271+
}
272+
]
273+
},
274+
{
275+
"matcher": {
276+
"id": "byName",
277+
"options": "virtualization_version"
278+
},
279+
"properties": [
280+
{
281+
"id": "custom.width",
282+
"value": 166
283+
}
284+
]
285+
},
286+
{
287+
"matcher": {
288+
"id": "byName",
289+
"options": "virtualization_name"
290+
},
291+
"properties": [
292+
{
293+
"id": "custom.width",
294+
"value": 169
295+
}
296+
]
297+
}
298+
]
299+
},
300+
"gridPos": {
301+
"h": 13,
302+
"w": 24,
303+
"x": 0,
304+
"y": 8
305+
},
306+
"id": 2,
307+
"options": {
308+
"cellHeight": "sm",
309+
"footer": {
310+
"countRows": false,
311+
"fields": "",
312+
"reducer": [
313+
"sum"
314+
],
315+
"show": false
316+
},
317+
"showHeader": true,
318+
"sortBy": []
319+
},
320+
"pluginVersion": "10.4.19",
321+
"targets": [
322+
{
323+
"datasource": {
324+
"type": "loki",
325+
"uid": "${ds_loki}"
326+
},
327+
"editorMode": "code",
328+
"expr": "{namespace=\"d8-virtualization\", pod=~\"virtualization-audit-.+\"} |= \"$query\"",
329+
"queryType": "range",
330+
"refId": "A"
331+
}
332+
],
333+
"title": "Logs view",
334+
"transformations": [
335+
{
336+
"id": "extractFields",
337+
"options": {
338+
"format": "json",
339+
"jsonPaths": [],
340+
"keepTime": true,
341+
"replace": true,
342+
"source": "Line"
343+
}
344+
}
345+
],
346+
"type": "table"
347+
}
348+
],
349+
"refresh": "1m",
350+
"schemaVersion": 39,
351+
"tags": [],
352+
"templating": {
353+
"list": [
354+
{
355+
"current": {
356+
"selected": false,
357+
"text": "d8-loki",
358+
"value": "d8-loki"
359+
},
360+
"hide": 0,
361+
"includeAll": false,
362+
"label": "Loki",
363+
"multi": false,
364+
"name": "ds_loki",
365+
"options": [],
366+
"query": "loki",
367+
"queryValue": "",
368+
"refresh": 1,
369+
"regex": "",
370+
"skipUrlSync": false,
371+
"type": "datasource"
372+
},
373+
{
374+
"current": {},
375+
"hide": 0,
376+
"label": "query",
377+
"name": "query",
378+
"options": [],
379+
"query": "",
380+
"skipUrlSync": false,
381+
"type": "textbox"
382+
}
383+
]
384+
},
385+
"time": {
386+
"from": "now-1h",
387+
"to": "now"
388+
},
389+
"timepicker": {},
390+
"timezone": "browser",
391+
"title": "Virtualization Audit",
392+
"uid": "cetic597nt7uoc",
393+
"version": 9,
394+
"weekStart": ""
395+
}

0 commit comments

Comments
 (0)