Skip to content

Commit 90f5cf6

Browse files
authored
Merge pull request #245 from akash4sh/main
Added new dashboards in client chart
2 parents 2b3e3ef + a9469e1 commit 90f5cf6

14 files changed

+3658
-2675
lines changed

charts/client/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.2
18+
version: 1.1.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/client/templates/configmap-azure-dashboard.yaml

Lines changed: 490 additions & 0 deletions
Large diffs are not rendered by default.

charts/client/templates/configmap-bitbucket-dashboard.yaml

Lines changed: 489 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 341 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,341 @@
1+
{{- if .Values.dashboards.enabled }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ include "client.fullname" . }}-containerbridge-dashboard
6+
annotations:
7+
grafana_folder: "Kubviz"
8+
labels:
9+
{{ .Values.dashboards.label }}: {{ .Values.dashboards.labelValue | quote }}
10+
data:
11+
containerbridge.json: |-
12+
{
13+
"annotations": {
14+
"list": [
15+
{
16+
"builtIn": 1,
17+
"datasource": "-- Grafana --",
18+
"enable": true,
19+
"hide": true,
20+
"iconColor": "rgba(0, 211, 255, 1)",
21+
"name": "Annotations & Alerts",
22+
"type": "dashboard"
23+
}
24+
]
25+
},
26+
"editable": true,
27+
"fiscalYearStartMonth": 0,
28+
"graphTooltip": 0,
29+
"id": 10,
30+
"links": [],
31+
"liveNow": false,
32+
"panels": [
33+
{
34+
"datasource": {
35+
"type": "vertamedia-clickhouse-datasource",
36+
"uid": "{{ .Values.datasources.uid }}"
37+
},
38+
"description": "",
39+
"fieldConfig": {
40+
"defaults": {
41+
"color": {
42+
"mode": "thresholds"
43+
},
44+
"custom": {
45+
"align": "center",
46+
"cellOptions": {
47+
"type": "color-text"
48+
},
49+
"filterable": true,
50+
"inspect": false
51+
},
52+
"mappings": [],
53+
"thresholds": {
54+
"mode": "absolute",
55+
"steps": [
56+
{
57+
"color": "green",
58+
"value": null
59+
}
60+
]
61+
}
62+
},
63+
"overrides": []
64+
},
65+
"gridPos": {
66+
"h": 8,
67+
"w": 24,
68+
"x": 0,
69+
"y": 0
70+
},
71+
"id": 4,
72+
"options": {
73+
"cellHeight": "sm",
74+
"footer": {
75+
"countRows": false,
76+
"fields": "",
77+
"reducer": [
78+
"sum"
79+
],
80+
"show": false
81+
},
82+
"showHeader": true
83+
},
84+
"pluginVersion": "10.0.3",
85+
"targets": [
86+
{
87+
"datasource": {
88+
"type": "vertamedia-clickhouse-datasource",
89+
"uid": "{{ .Values.datasources.uid }}"
90+
},
91+
"dateTimeType": "DATETIME",
92+
"extrapolate": true,
93+
"format": "table",
94+
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
95+
"intervalFactor": 1,
96+
"query": "SELECT * FROM default.quaycontainerpush\nWHERE $timeFilterByColumn(EventTime)\nORDER BY EventTime",
97+
"rawQuery": "SELECT * FROM default.quaycontainerpush\nWHERE EventTime >= toDateTime(1694165676) AND EventTime <= toDateTime(1694252076)\nORDER BY EventTime",
98+
"refId": "A",
99+
"round": "0s",
100+
"skip_comments": true
101+
}
102+
],
103+
"title": "Quay Container Registry",
104+
"type": "table"
105+
},
106+
{
107+
"datasource": {
108+
"type": "vertamedia-clickhouse-datasource",
109+
"uid": "{{ .Values.datasources.uid }}"
110+
},
111+
"fieldConfig": {
112+
"defaults": {
113+
"color": {
114+
"mode": "thresholds"
115+
},
116+
"custom": {
117+
"align": "center",
118+
"cellOptions": {
119+
"type": "color-text"
120+
},
121+
"filterable": true,
122+
"inspect": false
123+
},
124+
"mappings": [],
125+
"thresholds": {
126+
"mode": "absolute",
127+
"steps": [
128+
{
129+
"color": "green",
130+
"value": null
131+
}
132+
]
133+
}
134+
},
135+
"overrides": []
136+
},
137+
"gridPos": {
138+
"h": 8,
139+
"w": 24,
140+
"x": 0,
141+
"y": 8
142+
},
143+
"id": 3,
144+
"options": {
145+
"cellHeight": "sm",
146+
"footer": {
147+
"countRows": false,
148+
"fields": "",
149+
"reducer": [
150+
"sum"
151+
],
152+
"show": false
153+
},
154+
"showHeader": true
155+
},
156+
"pluginVersion": "10.0.3",
157+
"targets": [
158+
{
159+
"datasource": {
160+
"type": "vertamedia-clickhouse-datasource",
161+
"uid": "{{ .Values.datasources.uid }}"
162+
},
163+
"dateTimeType": "DATETIME",
164+
"extrapolate": true,
165+
"format": "table",
166+
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
167+
"intervalFactor": 1,
168+
"query": "SELECT * FROM default.jfrogcontainerpush\nWHERE $timeFilterByColumn(EventTime)\nORDER BY EventTime DESC",
169+
"rawQuery": "SELECT * FROM default.jfrogcontainerpush\nWHERE EventTime >= toDateTime(1694226084) AND EventTime <= toDateTime(1694247684)\nORDER BY EventTime DESC",
170+
"refId": "A",
171+
"round": "0s",
172+
"skip_comments": true
173+
}
174+
],
175+
"title": "JFrog Container Registry",
176+
"type": "table"
177+
},
178+
{
179+
"datasource": {
180+
"type": "vertamedia-clickhouse-datasource",
181+
"uid": "{{ .Values.datasources.uid }}"
182+
},
183+
"fieldConfig": {
184+
"defaults": {
185+
"color": {
186+
"mode": "thresholds"
187+
},
188+
"custom": {
189+
"align": "center",
190+
"cellOptions": {
191+
"type": "color-text"
192+
},
193+
"filterable": true,
194+
"inspect": false
195+
},
196+
"mappings": [],
197+
"thresholds": {
198+
"mode": "absolute",
199+
"steps": [
200+
{
201+
"color": "green",
202+
"value": null
203+
}
204+
]
205+
}
206+
},
207+
"overrides": []
208+
},
209+
"gridPos": {
210+
"h": 8,
211+
"w": 24,
212+
"x": 0,
213+
"y": 16
214+
},
215+
"id": 2,
216+
"options": {
217+
"cellHeight": "sm",
218+
"footer": {
219+
"countRows": false,
220+
"fields": "",
221+
"reducer": [
222+
"sum"
223+
],
224+
"show": false
225+
},
226+
"showHeader": true
227+
},
228+
"pluginVersion": "10.0.3",
229+
"targets": [
230+
{
231+
"datasource": {
232+
"type": "vertamedia-clickhouse-datasource",
233+
"uid": "{{ .Values.datasources.uid }}"
234+
},
235+
"dateTimeType": "DATETIME",
236+
"extrapolate": true,
237+
"format": "table",
238+
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
239+
"intervalFactor": 1,
240+
"query": "SELECT * FROM default.azurecontainerpush\nWHERE $timeFilterByColumn(EventTime)\nORDER BY EventTime DESC",
241+
"rawQuery": "SELECT * FROM default.azurecontainerpush\nWHERE EventTime >= toDateTime(1694165623) AND EventTime <= toDateTime(1694252023)\nORDER BY EventTime DESC",
242+
"refId": "A",
243+
"round": "0s",
244+
"skip_comments": true
245+
}
246+
],
247+
"title": "Azure Container Registry",
248+
"type": "table"
249+
},
250+
{
251+
"datasource": {
252+
"type": "vertamedia-clickhouse-datasource",
253+
"uid": "{{ .Values.datasources.uid }}"
254+
},
255+
"fieldConfig": {
256+
"defaults": {
257+
"color": {
258+
"mode": "thresholds"
259+
},
260+
"custom": {
261+
"align": "center",
262+
"cellOptions": {
263+
"type": "color-text"
264+
},
265+
"filterable": true,
266+
"inspect": false
267+
},
268+
"mappings": [],
269+
"thresholds": {
270+
"mode": "absolute",
271+
"steps": [
272+
{
273+
"color": "green",
274+
"value": null
275+
}
276+
]
277+
}
278+
},
279+
"overrides": []
280+
},
281+
"gridPos": {
282+
"h": 9,
283+
"w": 24,
284+
"x": 0,
285+
"y": 24
286+
},
287+
"id": 1,
288+
"options": {
289+
"cellHeight": "sm",
290+
"footer": {
291+
"countRows": false,
292+
"fields": "",
293+
"reducer": [
294+
"sum"
295+
],
296+
"show": false
297+
},
298+
"showHeader": true
299+
},
300+
"pluginVersion": "10.0.3",
301+
"targets": [
302+
{
303+
"datasource": {
304+
"type": "vertamedia-clickhouse-datasource",
305+
"uid": "{{ .Values.datasources.uid }}"
306+
},
307+
"dateTimeType": "DATETIME",
308+
"extrapolate": true,
309+
"format": "table",
310+
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
311+
"intervalFactor": 1,
312+
"query": "SELECT * FROM default.dockerhubbuild\nWHERE $timeFilterByColumn(EventTime)\nORDER BY EventTime DESC\n",
313+
"rawQuery": "SELECT * FROM default.dockerhubbuild\nWHERE EventTime >= toDateTime(1694165564) AND EventTime <= toDateTime(1694251964)\nORDER BY EventTime DESC",
314+
"refId": "A",
315+
"round": "0s",
316+
"skip_comments": true
317+
}
318+
],
319+
"title": "DockerHub",
320+
"type": "table"
321+
}
322+
],
323+
"refresh": "",
324+
"schemaVersion": 38,
325+
"style": "dark",
326+
"tags": [],
327+
"templating": {
328+
"list": []
329+
},
330+
"time": {
331+
"from": "now-24h",
332+
"to": "now"
333+
},
334+
"timepicker": {},
335+
"timezone": "",
336+
"title": "Container-Bridge",
337+
"uid": "cf8cf066-b241-48c8-9e3d-863eed33bcf3",
338+
"version": 2,
339+
"weekStart": ""
340+
}
341+
{{- end }}

0 commit comments

Comments
 (0)