Skip to content

Commit d1c610e

Browse files
Prince Rachit Sinharoboquat
Prince Rachit Sinha
authored andcommitted
[dashboard] Update success criteria dashboard
1 parent 5d3cf56 commit d1c610e

File tree

1 file changed

+136
-12
lines changed

1 file changed

+136
-12
lines changed

operations/observability/mixins/workspace/dashboards/success-criteria.json

Lines changed: 136 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"fiscalYearStartMonth": 0,
2323
"graphTooltip": 0,
2424
"id": 54,
25-
"iteration": 1642434789546,
25+
"iteration": 1649063422822,
2626
"links": [],
2727
"liveNow": false,
2828
"panels": [
@@ -72,8 +72,7 @@
7272
"mode": "absolute",
7373
"steps": [
7474
{
75-
"color": "red",
76-
"value": null
75+
"color": "red"
7776
},
7877
{
7978
"color": "green",
@@ -98,7 +97,8 @@
9897
"placement": "bottom"
9998
},
10099
"tooltip": {
101-
"mode": "single"
100+
"mode": "single",
101+
"sort": "none"
102102
}
103103
},
104104
"targets": [
@@ -108,14 +108,107 @@
108108
"uid": "${datasource}"
109109
},
110110
"exemplar": false,
111-
"expr": "1-((\n (\n sum(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\",type!~\"PREBUILD\"}[1d])) OR on() vector(0)\n /\n sum(rate(gitpod_ws_manager_workspace_stops_total{type!~\"PREBUILD\"}[1d]))\n )\n) + (\n (\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\"}[1d])) OR on() vector(0)\n /\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\"}[1d]))\n )\n))",
111+
"expr": "1-((\n (\n sum(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\"}[1d])) OR on() vector(0)\n /\n sum(rate(gitpod_ws_manager_workspace_stops_total[1d]))\n )\n) + (\n (\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\"}[1d])) OR on() vector(0)\n /\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\"}[1d]))\n )\n))",
112112
"instant": false,
113113
"interval": "",
114114
"legendFormat": "Success Rate",
115115
"refId": "A"
116116
}
117117
],
118-
"title": "Workspace Success Rate",
118+
"title": "Workspace Success Rate Overall",
119+
"type": "timeseries"
120+
},
121+
{
122+
"datasource": {
123+
"type": "prometheus",
124+
"uid": "${datasource}"
125+
},
126+
"fieldConfig": {
127+
"defaults": {
128+
"color": {
129+
"fixedColor": "blue",
130+
"mode": "palette-classic"
131+
},
132+
"custom": {
133+
"axisLabel": "",
134+
"axisPlacement": "auto",
135+
"barAlignment": 0,
136+
"drawStyle": "line",
137+
"fillOpacity": 0,
138+
"gradientMode": "opacity",
139+
"hideFrom": {
140+
"legend": false,
141+
"tooltip": false,
142+
"viz": false
143+
},
144+
"lineInterpolation": "linear",
145+
"lineWidth": 1,
146+
"pointSize": 5,
147+
"scaleDistribution": {
148+
"type": "linear"
149+
},
150+
"showPoints": "auto",
151+
"spanNulls": false,
152+
"stacking": {
153+
"group": "A",
154+
"mode": "none"
155+
},
156+
"thresholdsStyle": {
157+
"mode": "line+area"
158+
}
159+
},
160+
"mappings": [],
161+
"max": 1,
162+
"min": 0.9,
163+
"thresholds": {
164+
"mode": "absolute",
165+
"steps": [
166+
{
167+
"color": "red",
168+
"value": null
169+
},
170+
{
171+
"color": "green",
172+
"value": 0.99
173+
}
174+
]
175+
}
176+
},
177+
"overrides": []
178+
},
179+
"gridPos": {
180+
"h": 22,
181+
"w": 24,
182+
"x": 0,
183+
"y": 22
184+
},
185+
"id": 5,
186+
"options": {
187+
"legend": {
188+
"calcs": [],
189+
"displayMode": "list",
190+
"placement": "bottom"
191+
},
192+
"tooltip": {
193+
"mode": "single",
194+
"sort": "none"
195+
}
196+
},
197+
"targets": [
198+
{
199+
"datasource": {
200+
"type": "prometheus",
201+
"uid": "${datasource}"
202+
},
203+
"exemplar": false,
204+
"expr": "1-((\n (\n sum by (cluster)(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\"}[1d])) OR on() vector(0)\n /\n sum by (cluster)(rate(gitpod_ws_manager_workspace_stops_total[1d]))\n )\n) + (\n (\n sum by (cluster)(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\"}[1d])) OR on() vector(0)\n /\n sum by (cluster)(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\"}[1d]))\n )\n))",
205+
"instant": false,
206+
"interval": "",
207+
"legendFormat": "{{ cluster }}",
208+
"refId": "A"
209+
}
210+
],
211+
"title": "Workspace Success Rate Cluster Wise",
119212
"type": "timeseries"
120213
},
121214
{
@@ -179,7 +272,7 @@
179272
"h": 27,
180273
"w": 24,
181274
"x": 0,
182-
"y": 22
275+
"y": 44
183276
},
184277
"id": 2,
185278
"options": {
@@ -189,7 +282,8 @@
189282
"placement": "bottom"
190283
},
191284
"tooltip": {
192-
"mode": "single"
285+
"mode": "single",
286+
"sort": "none"
193287
}
194288
},
195289
"targets": [
@@ -210,7 +304,7 @@
210304
}
211305
],
212306
"refresh": "1m",
213-
"schemaVersion": 34,
307+
"schemaVersion": 35,
214308
"style": "dark",
215309
"tags": [
216310
"workspace",
@@ -220,9 +314,9 @@
220314
"list": [
221315
{
222316
"current": {
223-
"selected": true,
224-
"text": "prometheus",
225-
"value": "prometheus"
317+
"selected": false,
318+
"text": "VictoriaMetrics",
319+
"value": "VictoriaMetrics"
226320
},
227321
"hide": 0,
228322
"includeAll": false,
@@ -235,6 +329,36 @@
235329
"regex": "",
236330
"skipUrlSync": false,
237331
"type": "datasource"
332+
},
333+
{
334+
"current": {
335+
"selected": true,
336+
"text": [
337+
"us38"
338+
],
339+
"value": [
340+
"us38"
341+
]
342+
},
343+
"datasource": {
344+
"type": "prometheus",
345+
"uid": "${datasource}"
346+
},
347+
"definition": "label_values(container_cpu_usage_seconds_total, cluster)",
348+
"hide": 0,
349+
"includeAll": true,
350+
"multi": true,
351+
"name": "cluster",
352+
"options": [],
353+
"query": {
354+
"query": "label_values(container_cpu_usage_seconds_total, cluster)",
355+
"refId": "StandardVariableQuery"
356+
},
357+
"refresh": 1,
358+
"regex": "",
359+
"skipUrlSync": false,
360+
"sort": 0,
361+
"type": "query"
238362
}
239363
]
240364
},

0 commit comments

Comments
 (0)