|
22 | 22 | "fiscalYearStartMonth": 0,
|
23 | 23 | "graphTooltip": 0,
|
24 | 24 | "id": 54,
|
25 |
| - "iteration": 1642434789546, |
| 25 | + "iteration": 1649063422822, |
26 | 26 | "links": [],
|
27 | 27 | "liveNow": false,
|
28 | 28 | "panels": [
|
|
72 | 72 | "mode": "absolute",
|
73 | 73 | "steps": [
|
74 | 74 | {
|
75 |
| - "color": "red", |
76 |
| - "value": null |
| 75 | + "color": "red" |
77 | 76 | },
|
78 | 77 | {
|
79 | 78 | "color": "green",
|
|
98 | 97 | "placement": "bottom"
|
99 | 98 | },
|
100 | 99 | "tooltip": {
|
101 |
| - "mode": "single" |
| 100 | + "mode": "single", |
| 101 | + "sort": "none" |
102 | 102 | }
|
103 | 103 | },
|
104 | 104 | "targets": [
|
|
108 | 108 | "uid": "${datasource}"
|
109 | 109 | },
|
110 | 110 | "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))", |
112 | 112 | "instant": false,
|
113 | 113 | "interval": "",
|
114 | 114 | "legendFormat": "Success Rate",
|
115 | 115 | "refId": "A"
|
116 | 116 | }
|
117 | 117 | ],
|
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", |
119 | 212 | "type": "timeseries"
|
120 | 213 | },
|
121 | 214 | {
|
|
179 | 272 | "h": 27,
|
180 | 273 | "w": 24,
|
181 | 274 | "x": 0,
|
182 |
| - "y": 22 |
| 275 | + "y": 44 |
183 | 276 | },
|
184 | 277 | "id": 2,
|
185 | 278 | "options": {
|
|
189 | 282 | "placement": "bottom"
|
190 | 283 | },
|
191 | 284 | "tooltip": {
|
192 |
| - "mode": "single" |
| 285 | + "mode": "single", |
| 286 | + "sort": "none" |
193 | 287 | }
|
194 | 288 | },
|
195 | 289 | "targets": [
|
|
210 | 304 | }
|
211 | 305 | ],
|
212 | 306 | "refresh": "1m",
|
213 |
| - "schemaVersion": 34, |
| 307 | + "schemaVersion": 35, |
214 | 308 | "style": "dark",
|
215 | 309 | "tags": [
|
216 | 310 | "workspace",
|
|
220 | 314 | "list": [
|
221 | 315 | {
|
222 | 316 | "current": {
|
223 |
| - "selected": true, |
224 |
| - "text": "prometheus", |
225 |
| - "value": "prometheus" |
| 317 | + "selected": false, |
| 318 | + "text": "VictoriaMetrics", |
| 319 | + "value": "VictoriaMetrics" |
226 | 320 | },
|
227 | 321 | "hide": 0,
|
228 | 322 | "includeAll": false,
|
|
235 | 329 | "regex": "",
|
236 | 330 | "skipUrlSync": false,
|
237 | 331 | "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" |
238 | 362 | }
|
239 | 363 | ]
|
240 | 364 | },
|
|
0 commit comments