Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/cross-teams/dashboards/gitpod-connect-server.json
2500 views
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": "Common visualisations of gRPC (Golang) Server metrics",
25
"editable": true,
26
"fiscalYearStartMonth": 0,
27
"graphTooltip": 1,
28
"id": 80,
29
"links": [],
30
"liveNow": false,
31
"panels": [
32
{
33
"collapsed": false,
34
"gridPos": {
35
"h": 1,
36
"w": 24,
37
"x": 0,
38
"y": 0
39
},
40
"id": 2,
41
"panels": [],
42
"title": "Requests",
43
"type": "row"
44
},
45
{
46
"datasource": {
47
"type": "prometheus",
48
"uid": "${datasource}"
49
},
50
"description": "Rate of gRPC requests started",
51
"fieldConfig": {
52
"defaults": {
53
"color": {
54
"mode": "palette-classic"
55
},
56
"custom": {
57
"axisCenteredZero": false,
58
"axisColorMode": "text",
59
"axisLabel": "",
60
"axisPlacement": "auto",
61
"barAlignment": 0,
62
"drawStyle": "line",
63
"fillOpacity": 0,
64
"gradientMode": "none",
65
"hideFrom": {
66
"legend": false,
67
"tooltip": false,
68
"viz": false
69
},
70
"lineInterpolation": "linear",
71
"lineWidth": 1,
72
"pointSize": 5,
73
"scaleDistribution": {
74
"type": "linear"
75
},
76
"showPoints": "auto",
77
"spanNulls": false,
78
"stacking": {
79
"group": "A",
80
"mode": "none"
81
},
82
"thresholdsStyle": {
83
"mode": "off"
84
}
85
},
86
"mappings": [],
87
"thresholds": {
88
"mode": "absolute",
89
"steps": [
90
{
91
"color": "green",
92
"value": null
93
},
94
{
95
"color": "red",
96
"value": 80
97
}
98
]
99
},
100
"unit": "opm"
101
},
102
"overrides": []
103
},
104
"gridPos": {
105
"h": 8,
106
"w": 24,
107
"x": 0,
108
"y": 1
109
},
110
"id": 4,
111
"options": {
112
"legend": {
113
"calcs": [],
114
"displayMode": "list",
115
"placement": "bottom",
116
"showLegend": true
117
},
118
"tooltip": {
119
"mode": "single",
120
"sort": "none"
121
}
122
},
123
"targets": [
124
{
125
"datasource": {
126
"type": "prometheus",
127
"uid": "${datasource}"
128
},
129
"editorMode": "code",
130
"expr": "sum(increase(connect_server_started_total{package=~\"$package\", call=~\"$call\", call_type=~\"$type\"}[1m])) by (package, call)",
131
"legendFormat": "{{package}}.{{call}}",
132
"range": true,
133
"refId": "A"
134
}
135
],
136
"title": "Requests started [1m]",
137
"type": "timeseries"
138
},
139
{
140
"datasource": {
141
"type": "prometheus",
142
"uid": "${datasource}"
143
},
144
"description": "Rate of requests completed, by status",
145
"fieldConfig": {
146
"defaults": {
147
"color": {
148
"mode": "palette-classic"
149
},
150
"custom": {
151
"axisCenteredZero": false,
152
"axisColorMode": "text",
153
"axisLabel": "",
154
"axisPlacement": "auto",
155
"barAlignment": 0,
156
"drawStyle": "line",
157
"fillOpacity": 0,
158
"gradientMode": "none",
159
"hideFrom": {
160
"legend": false,
161
"tooltip": false,
162
"viz": false
163
},
164
"lineInterpolation": "linear",
165
"lineWidth": 1,
166
"pointSize": 5,
167
"scaleDistribution": {
168
"type": "linear"
169
},
170
"showPoints": "auto",
171
"spanNulls": false,
172
"stacking": {
173
"group": "A",
174
"mode": "none"
175
},
176
"thresholdsStyle": {
177
"mode": "off"
178
}
179
},
180
"mappings": [],
181
"thresholds": {
182
"mode": "absolute",
183
"steps": [
184
{
185
"color": "green",
186
"value": null
187
},
188
{
189
"color": "red",
190
"value": 80
191
}
192
]
193
},
194
"unit": "opm"
195
},
196
"overrides": []
197
},
198
"gridPos": {
199
"h": 8,
200
"w": 24,
201
"x": 0,
202
"y": 9
203
},
204
"id": 6,
205
"options": {
206
"legend": {
207
"calcs": [],
208
"displayMode": "list",
209
"placement": "bottom",
210
"showLegend": true
211
},
212
"tooltip": {
213
"mode": "single",
214
"sort": "none"
215
}
216
},
217
"targets": [
218
{
219
"datasource": {
220
"type": "prometheus",
221
"uid": "${datasource}"
222
},
223
"editorMode": "code",
224
"expr": "sum(increase(connect_server_handled_seconds_count{package=~\"$package\", call=~\"$call\", call_type=~\"$type\"}[1m])) by (package, call, code)",
225
"legendFormat": "{{package}}.{{call}} - {{code}}",
226
"range": true,
227
"refId": "A"
228
}
229
],
230
"title": "Requests completed [1m]",
231
"type": "timeseries"
232
},
233
{
234
"collapsed": false,
235
"gridPos": {
236
"h": 1,
237
"w": 24,
238
"x": 0,
239
"y": 17
240
},
241
"id": 11,
242
"panels": [],
243
"title": "Errors",
244
"type": "row"
245
},
246
{
247
"datasource": {
248
"type": "prometheus",
249
"uid": "${datasource}"
250
},
251
"description": "Rate of errors, by status",
252
"fieldConfig": {
253
"defaults": {
254
"color": {
255
"mode": "palette-classic"
256
},
257
"custom": {
258
"axisCenteredZero": false,
259
"axisColorMode": "text",
260
"axisLabel": "",
261
"axisPlacement": "auto",
262
"barAlignment": 0,
263
"drawStyle": "line",
264
"fillOpacity": 0,
265
"gradientMode": "none",
266
"hideFrom": {
267
"legend": false,
268
"tooltip": false,
269
"viz": false
270
},
271
"lineInterpolation": "linear",
272
"lineWidth": 1,
273
"pointSize": 5,
274
"scaleDistribution": {
275
"type": "linear"
276
},
277
"showPoints": "auto",
278
"spanNulls": false,
279
"stacking": {
280
"group": "A",
281
"mode": "none"
282
},
283
"thresholdsStyle": {
284
"mode": "off"
285
}
286
},
287
"mappings": [],
288
"thresholds": {
289
"mode": "absolute",
290
"steps": [
291
{
292
"color": "green",
293
"value": null
294
},
295
{
296
"color": "red",
297
"value": 80
298
}
299
]
300
},
301
"unit": "opm"
302
},
303
"overrides": []
304
},
305
"gridPos": {
306
"h": 8,
307
"w": 24,
308
"x": 0,
309
"y": 18
310
},
311
"id": 7,
312
"options": {
313
"legend": {
314
"calcs": [],
315
"displayMode": "list",
316
"placement": "bottom",
317
"showLegend": true
318
},
319
"tooltip": {
320
"mode": "single",
321
"sort": "none"
322
}
323
},
324
"targets": [
325
{
326
"datasource": {
327
"type": "prometheus",
328
"uid": "${datasource}"
329
},
330
"editorMode": "code",
331
"expr": "sum(increase(connect_server_handled_seconds_count{package=~\"$package\", call=~\"$call\", call_type=~\"$type\", code!=\"ok\"}[1m])) by (package, call, code)",
332
"legendFormat": "{{package}}.{{call}} - {{code}}",
333
"range": true,
334
"refId": "A"
335
}
336
],
337
"title": "Request errors [1m]",
338
"type": "timeseries"
339
},
340
{
341
"collapsed": false,
342
"gridPos": {
343
"h": 1,
344
"w": 24,
345
"x": 0,
346
"y": 26
347
},
348
"id": 13,
349
"panels": [],
350
"title": "Latency",
351
"type": "row"
352
},
353
{
354
"datasource": {
355
"type": "prometheus",
356
"uid": "${datasource}"
357
},
358
"description": "",
359
"fieldConfig": {
360
"defaults": {
361
"color": {
362
"mode": "palette-classic"
363
},
364
"custom": {
365
"axisCenteredZero": false,
366
"axisColorMode": "text",
367
"axisLabel": "",
368
"axisPlacement": "auto",
369
"barAlignment": 0,
370
"drawStyle": "line",
371
"fillOpacity": 0,
372
"gradientMode": "none",
373
"hideFrom": {
374
"legend": false,
375
"tooltip": false,
376
"viz": false
377
},
378
"lineInterpolation": "linear",
379
"lineWidth": 1,
380
"pointSize": 5,
381
"scaleDistribution": {
382
"type": "linear"
383
},
384
"showPoints": "auto",
385
"spanNulls": false,
386
"stacking": {
387
"group": "A",
388
"mode": "none"
389
},
390
"thresholdsStyle": {
391
"mode": "off"
392
}
393
},
394
"mappings": [],
395
"thresholds": {
396
"mode": "absolute",
397
"steps": [
398
{
399
"color": "green",
400
"value": null
401
},
402
{
403
"color": "red",
404
"value": 80
405
}
406
]
407
},
408
"unit": "s"
409
},
410
"overrides": []
411
},
412
"gridPos": {
413
"h": 8,
414
"w": 24,
415
"x": 0,
416
"y": 27
417
},
418
"id": 9,
419
"options": {
420
"legend": {
421
"calcs": [],
422
"displayMode": "list",
423
"placement": "bottom",
424
"showLegend": true
425
},
426
"tooltip": {
427
"mode": "single",
428
"sort": "none"
429
}
430
},
431
"targets": [
432
{
433
"datasource": {
434
"type": "prometheus",
435
"uid": "${datasource}"
436
},
437
"editorMode": "code",
438
"expr": "histogram_quantile(0.99, \n sum(rate(connect_server_handled_seconds_bucket{call_type=~\"$type\", package=~\"$package\", call=~\"$call\"}[5m])) by (package, call, le)\n)\n\n",
439
"legendFormat": "{{package}}.{{call}}",
440
"range": true,
441
"refId": "A"
442
}
443
],
444
"title": "99th percentile response latency [5m]",
445
"type": "timeseries"
446
}
447
],
448
"schemaVersion": 37,
449
"style": "dark",
450
"tags": [
451
"connect",
452
"server"
453
],
454
"templating": {
455
"list": [
456
{
457
"current": {
458
"selected": false,
459
"text": "VictoriaMetrics",
460
"value": "VictoriaMetrics"
461
},
462
"hide": 0,
463
"includeAll": false,
464
"multi": false,
465
"name": "datasource",
466
"options": [],
467
"query": "prometheus",
468
"refresh": 1,
469
"regex": "",
470
"skipUrlSync": false,
471
"type": "datasource"
472
},
473
{
474
"allValue": ".*",
475
"current": {
476
"selected": true,
477
"text": [
478
"All"
479
],
480
"value": [
481
"$__all"
482
]
483
},
484
"datasource": {
485
"type": "prometheus",
486
"uid": "${datasource}"
487
},
488
"definition": "label_values(connect_server_started_total, package)",
489
"description": "Connect / gRPC Service Name",
490
"hide": 0,
491
"includeAll": true,
492
"label": "Package",
493
"multi": true,
494
"name": "package",
495
"options": [],
496
"query": {
497
"query": "label_values(connect_server_started_total, package)",
498
"refId": "StandardVariableQuery"
499
},
500
"refresh": 1,
501
"regex": "",
502
"skipUrlSync": false,
503
"sort": 5,
504
"type": "query"
505
},
506
{
507
"allValue": ".*",
508
"current": {
509
"selected": true,
510
"text": [
511
"All"
512
],
513
"value": [
514
"$__all"
515
]
516
},
517
"datasource": {
518
"type": "prometheus",
519
"uid": "${datasource}"
520
},
521
"definition": "label_values(connect_server_started_total{package=~\"$package\"}, call)",
522
"description": "Connect Call Name",
523
"hide": 0,
524
"includeAll": true,
525
"label": "Call",
526
"multi": true,
527
"name": "call",
528
"options": [],
529
"query": {
530
"query": "label_values(connect_server_started_total{package=~\"$package\"}, call)",
531
"refId": "StandardVariableQuery"
532
},
533
"refresh": 1,
534
"regex": "",
535
"skipUrlSync": false,
536
"sort": 5,
537
"type": "query"
538
},
539
{
540
"allValue": ".*",
541
"current": {
542
"selected": true,
543
"text": [
544
"All"
545
],
546
"value": [
547
"$__all"
548
]
549
},
550
"datasource": {
551
"type": "prometheus",
552
"uid": "${datasource}"
553
},
554
"definition": "label_values(connect_server_started_total{package=~\"$package\", call=~\"$call\"}, call_type)",
555
"description": "Connect request type - bidirectional stream, server stream, unary, client_stream",
556
"hide": 0,
557
"includeAll": true,
558
"label": "Type",
559
"multi": true,
560
"name": "type",
561
"options": [],
562
"query": {
563
"query": "label_values(connect_server_started_total{package=~\"$package\", call=~\"$call\"}, call_type)",
564
"refId": "StandardVariableQuery"
565
},
566
"refresh": 1,
567
"regex": "",
568
"skipUrlSync": false,
569
"sort": 5,
570
"type": "query"
571
}
572
]
573
},
574
"time": {
575
"from": "now-6h",
576
"to": "now"
577
},
578
"timepicker": {
579
"refresh_intervals": [
580
"30s",
581
"1m",
582
"5m",
583
"15m",
584
"30m",
585
"1h",
586
"2h",
587
"1d"
588
]
589
},
590
"timezone": "utc",
591
"title": "Connect / Server",
592
"uid": "Ce3ZWpNVk",
593
"version": 3,
594
"weekStart": "monday"
595
}
596
597