Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/meta/dashboards/components/spicedb.json
2501 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
"editable": true,
25
"fiscalYearStartMonth": 0,
26
"graphTooltip": 1,
27
"id": 88,
28
"links": [],
29
"liveNow": false,
30
"panels": [
31
{
32
"gridPos": {
33
"h": 1,
34
"w": 24,
35
"x": 0,
36
"y": 0
37
},
38
"id": 9,
39
"title": "API",
40
"type": "row"
41
},
42
{
43
"datasource": {
44
"type": "prometheus",
45
"uid": "P4169E866C3094E38"
46
},
47
"fieldConfig": {
48
"defaults": {
49
"color": {
50
"mode": "palette-classic"
51
},
52
"custom": {
53
"axisCenteredZero": false,
54
"axisColorMode": "text",
55
"axisLabel": "",
56
"axisPlacement": "auto",
57
"barAlignment": 0,
58
"drawStyle": "line",
59
"fillOpacity": 0,
60
"gradientMode": "none",
61
"hideFrom": {
62
"legend": false,
63
"tooltip": false,
64
"viz": false
65
},
66
"lineInterpolation": "linear",
67
"lineWidth": 1,
68
"pointSize": 5,
69
"scaleDistribution": {
70
"type": "linear"
71
},
72
"showPoints": "auto",
73
"spanNulls": false,
74
"stacking": {
75
"group": "A",
76
"mode": "none"
77
},
78
"thresholdsStyle": {
79
"mode": "off"
80
}
81
},
82
"mappings": [],
83
"thresholds": {
84
"mode": "absolute",
85
"steps": [
86
{
87
"color": "green",
88
"value": null
89
},
90
{
91
"color": "red",
92
"value": 80
93
}
94
]
95
}
96
},
97
"overrides": []
98
},
99
"gridPos": {
100
"h": 9,
101
"w": 12,
102
"x": 0,
103
"y": 1
104
},
105
"id": 7,
106
"options": {
107
"legend": {
108
"calcs": [],
109
"displayMode": "list",
110
"placement": "bottom",
111
"showLegend": true
112
},
113
"tooltip": {
114
"mode": "single",
115
"sort": "none"
116
}
117
},
118
"targets": [
119
{
120
"datasource": {
121
"type": "prometheus",
122
"uid": "P4169E866C3094E38"
123
},
124
"editorMode": "code",
125
"expr": "sum(increase(grpc_server_handled_total{job=\"spicedb\"}[1m])) by (grpc_code)",
126
"hide": false,
127
"legendFormat": "__auto",
128
"range": true,
129
"refId": "B"
130
}
131
],
132
"title": "API Requests by Status [1m]",
133
"type": "timeseries"
134
},
135
{
136
"datasource": {
137
"type": "prometheus",
138
"uid": "P4169E866C3094E38"
139
},
140
"fieldConfig": {
141
"defaults": {
142
"color": {
143
"mode": "palette-classic"
144
},
145
"custom": {
146
"axisCenteredZero": false,
147
"axisColorMode": "text",
148
"axisLabel": "",
149
"axisPlacement": "auto",
150
"barAlignment": 0,
151
"drawStyle": "line",
152
"fillOpacity": 0,
153
"gradientMode": "none",
154
"hideFrom": {
155
"legend": false,
156
"tooltip": false,
157
"viz": false
158
},
159
"lineInterpolation": "linear",
160
"lineWidth": 1,
161
"pointSize": 5,
162
"scaleDistribution": {
163
"type": "linear"
164
},
165
"showPoints": "auto",
166
"spanNulls": false,
167
"stacking": {
168
"group": "A",
169
"mode": "none"
170
},
171
"thresholdsStyle": {
172
"mode": "off"
173
}
174
},
175
"mappings": [],
176
"thresholds": {
177
"mode": "absolute",
178
"steps": [
179
{
180
"color": "green",
181
"value": null
182
},
183
{
184
"color": "red",
185
"value": 80
186
}
187
]
188
},
189
"unit": "s"
190
},
191
"overrides": []
192
},
193
"gridPos": {
194
"h": 9,
195
"w": 12,
196
"x": 12,
197
"y": 1
198
},
199
"id": 10,
200
"options": {
201
"legend": {
202
"calcs": [],
203
"displayMode": "list",
204
"placement": "bottom",
205
"showLegend": true
206
},
207
"tooltip": {
208
"mode": "single",
209
"sort": "none"
210
}
211
},
212
"targets": [
213
{
214
"datasource": {
215
"type": "prometheus",
216
"uid": "P4169E866C3094E38"
217
},
218
"editorMode": "code",
219
"expr": "histogram_quantile(0.5, sum(rate(grpc_server_handling_seconds_bucket{job=\"spicedb\"}[5m])) by (le))",
220
"hide": false,
221
"legendFormat": "50th",
222
"range": true,
223
"refId": "A"
224
},
225
{
226
"datasource": {
227
"type": "prometheus",
228
"uid": "P4169E866C3094E38"
229
},
230
"editorMode": "code",
231
"expr": "histogram_quantile(0.99, sum(rate(grpc_server_handling_seconds_bucket{job=\"spicedb\"}[5m])) by (le))",
232
"hide": false,
233
"legendFormat": "99th",
234
"range": true,
235
"refId": "B"
236
}
237
],
238
"title": "API Latency [5m]",
239
"type": "timeseries"
240
},
241
{
242
"collapsed": false,
243
"gridPos": {
244
"h": 1,
245
"w": 24,
246
"x": 0,
247
"y": 10
248
},
249
"id": 4,
250
"panels": [],
251
"title": "Datastore",
252
"type": "row"
253
},
254
{
255
"datasource": {
256
"type": "prometheus",
257
"uid": "P4169E866C3094E38"
258
},
259
"fieldConfig": {
260
"defaults": {
261
"color": {
262
"mode": "palette-classic"
263
},
264
"custom": {
265
"axisCenteredZero": false,
266
"axisColorMode": "text",
267
"axisLabel": "",
268
"axisPlacement": "auto",
269
"barAlignment": 0,
270
"drawStyle": "line",
271
"fillOpacity": 0,
272
"gradientMode": "none",
273
"hideFrom": {
274
"legend": false,
275
"tooltip": false,
276
"viz": false
277
},
278
"lineInterpolation": "linear",
279
"lineWidth": 1,
280
"pointSize": 5,
281
"scaleDistribution": {
282
"type": "linear"
283
},
284
"showPoints": "auto",
285
"spanNulls": false,
286
"stacking": {
287
"group": "A",
288
"mode": "none"
289
},
290
"thresholdsStyle": {
291
"mode": "off"
292
}
293
},
294
"mappings": [],
295
"thresholds": {
296
"mode": "absolute",
297
"steps": [
298
{
299
"color": "green",
300
"value": null
301
},
302
{
303
"color": "red",
304
"value": 80
305
}
306
]
307
},
308
"unit": "s"
309
},
310
"overrides": []
311
},
312
"gridPos": {
313
"h": 9,
314
"w": 12,
315
"x": 0,
316
"y": 11
317
},
318
"id": 2,
319
"options": {
320
"legend": {
321
"calcs": [],
322
"displayMode": "list",
323
"placement": "bottom",
324
"showLegend": true
325
},
326
"tooltip": {
327
"mode": "single",
328
"sort": "none"
329
}
330
},
331
"targets": [
332
{
333
"datasource": {
334
"type": "prometheus",
335
"uid": "P4169E866C3094E38"
336
},
337
"editorMode": "code",
338
"expr": "histogram_quantile(0.5, sum(rate(spicedb_datastore_gc_duration_seconds_bucket[5m])) by (le))",
339
"hide": false,
340
"legendFormat": "50th",
341
"range": true,
342
"refId": "A"
343
},
344
{
345
"datasource": {
346
"type": "prometheus",
347
"uid": "P4169E866C3094E38"
348
},
349
"editorMode": "code",
350
"expr": "histogram_quantile(0.99, sum(rate(spicedb_datastore_gc_duration_seconds_bucket[5m])) by (le))",
351
"hide": false,
352
"legendFormat": "99th",
353
"range": true,
354
"refId": "B"
355
}
356
],
357
"title": "Garbage Collection [5m]",
358
"type": "timeseries"
359
},
360
{
361
"datasource": {
362
"type": "prometheus",
363
"uid": "P4169E866C3094E38"
364
},
365
"fieldConfig": {
366
"defaults": {
367
"color": {
368
"mode": "palette-classic"
369
},
370
"custom": {
371
"axisCenteredZero": false,
372
"axisColorMode": "text",
373
"axisLabel": "",
374
"axisPlacement": "auto",
375
"barAlignment": 0,
376
"drawStyle": "line",
377
"fillOpacity": 0,
378
"gradientMode": "none",
379
"hideFrom": {
380
"legend": false,
381
"tooltip": false,
382
"viz": false
383
},
384
"lineInterpolation": "linear",
385
"lineWidth": 1,
386
"pointSize": 5,
387
"scaleDistribution": {
388
"type": "linear"
389
},
390
"showPoints": "auto",
391
"spanNulls": false,
392
"stacking": {
393
"group": "A",
394
"mode": "none"
395
},
396
"thresholdsStyle": {
397
"mode": "off"
398
}
399
},
400
"mappings": [],
401
"thresholds": {
402
"mode": "absolute",
403
"steps": [
404
{
405
"color": "green",
406
"value": null
407
},
408
{
409
"color": "red",
410
"value": 80
411
}
412
]
413
},
414
"unit": "s"
415
},
416
"overrides": []
417
},
418
"gridPos": {
419
"h": 9,
420
"w": 12,
421
"x": 12,
422
"y": 11
423
},
424
"id": 5,
425
"options": {
426
"legend": {
427
"calcs": [],
428
"displayMode": "list",
429
"placement": "bottom",
430
"showLegend": true
431
},
432
"tooltip": {
433
"mode": "single",
434
"sort": "none"
435
}
436
},
437
"targets": [
438
{
439
"datasource": {
440
"type": "prometheus",
441
"uid": "P4169E866C3094E38"
442
},
443
"editorMode": "code",
444
"expr": "histogram_quantile(0.5, sum(rate(spicedb_datastore_query_latency_bucket[5m])) by (le))",
445
"hide": false,
446
"legendFormat": "50th",
447
"range": true,
448
"refId": "A"
449
},
450
{
451
"datasource": {
452
"type": "prometheus",
453
"uid": "P4169E866C3094E38"
454
},
455
"editorMode": "code",
456
"expr": "histogram_quantile(0.99, sum(rate(spicedb_datastore_query_latency_bucket[5m])) by (le))",
457
"hide": false,
458
"legendFormat": "99th",
459
"range": true,
460
"refId": "B"
461
}
462
],
463
"title": "Query Latency [5m]",
464
"type": "timeseries"
465
},
466
{
467
"datasource": {
468
"type": "prometheus",
469
"uid": "P4169E866C3094E38"
470
},
471
"fieldConfig": {
472
"defaults": {
473
"color": {
474
"mode": "palette-classic"
475
},
476
"custom": {
477
"axisCenteredZero": false,
478
"axisColorMode": "text",
479
"axisLabel": "",
480
"axisPlacement": "auto",
481
"barAlignment": 0,
482
"drawStyle": "line",
483
"fillOpacity": 0,
484
"gradientMode": "none",
485
"hideFrom": {
486
"legend": false,
487
"tooltip": false,
488
"viz": false
489
},
490
"lineInterpolation": "linear",
491
"lineWidth": 1,
492
"pointSize": 5,
493
"scaleDistribution": {
494
"type": "linear"
495
},
496
"showPoints": "auto",
497
"spanNulls": false,
498
"stacking": {
499
"group": "A",
500
"mode": "none"
501
},
502
"thresholdsStyle": {
503
"mode": "off"
504
}
505
},
506
"mappings": [],
507
"thresholds": {
508
"mode": "absolute",
509
"steps": [
510
{
511
"color": "green",
512
"value": null
513
},
514
{
515
"color": "red",
516
"value": 80
517
}
518
]
519
}
520
},
521
"overrides": []
522
},
523
"gridPos": {
524
"h": 8,
525
"w": 12,
526
"x": 0,
527
"y": 20
528
},
529
"id": 12,
530
"options": {
531
"legend": {
532
"calcs": [],
533
"displayMode": "list",
534
"placement": "bottom",
535
"showLegend": true
536
},
537
"tooltip": {
538
"mode": "single",
539
"sort": "none"
540
}
541
},
542
"targets": [
543
{
544
"datasource": {
545
"type": "prometheus",
546
"uid": "P4169E866C3094E38"
547
},
548
"editorMode": "code",
549
"expr": "sum(increase(spicedb_datastore_mysql_connect_count_total[1m])) by (success)",
550
"hide": false,
551
"legendFormat": "success: {{success}}",
552
"range": true,
553
"refId": "A"
554
}
555
],
556
"title": "New database connections",
557
"type": "timeseries"
558
},
559
{
560
"collapsed": false,
561
"gridPos": {
562
"h": 1,
563
"w": 24,
564
"x": 0,
565
"y": 28
566
},
567
"id": 14,
568
"panels": [],
569
"title": "Cache",
570
"type": "row"
571
},
572
{
573
"datasource": {
574
"type": "prometheus",
575
"uid": "P4169E866C3094E38"
576
},
577
"fieldConfig": {
578
"defaults": {
579
"color": {
580
"mode": "palette-classic"
581
},
582
"custom": {
583
"axisCenteredZero": false,
584
"axisColorMode": "text",
585
"axisLabel": "",
586
"axisPlacement": "auto",
587
"barAlignment": 0,
588
"drawStyle": "line",
589
"fillOpacity": 0,
590
"gradientMode": "none",
591
"hideFrom": {
592
"legend": false,
593
"tooltip": false,
594
"viz": false
595
},
596
"lineInterpolation": "linear",
597
"lineWidth": 1,
598
"pointSize": 5,
599
"scaleDistribution": {
600
"type": "linear"
601
},
602
"showPoints": "auto",
603
"spanNulls": false,
604
"stacking": {
605
"group": "A",
606
"mode": "none"
607
},
608
"thresholdsStyle": {
609
"mode": "off"
610
}
611
},
612
"mappings": [],
613
"min": 0,
614
"thresholds": {
615
"mode": "absolute",
616
"steps": [
617
{
618
"color": "green",
619
"value": null
620
},
621
{
622
"color": "red",
623
"value": 80
624
}
625
]
626
},
627
"unit": "opm"
628
},
629
"overrides": [
630
{
631
"matcher": {
632
"id": "byRegexp",
633
"options": "/Hit.*/"
634
},
635
"properties": [
636
{
637
"id": "color",
638
"value": {
639
"fixedColor": "green",
640
"mode": "fixed",
641
"seriesBy": "max"
642
}
643
}
644
]
645
},
646
{
647
"matcher": {
648
"id": "byRegexp",
649
"options": "/Miss.*/"
650
},
651
"properties": [
652
{
653
"id": "color",
654
"value": {
655
"fixedColor": "red",
656
"mode": "fixed",
657
"seriesBy": "last"
658
}
659
}
660
]
661
}
662
]
663
},
664
"gridPos": {
665
"h": 8,
666
"w": 12,
667
"x": 0,
668
"y": 29
669
},
670
"id": 13,
671
"interval": "1m",
672
"options": {
673
"legend": {
674
"calcs": [],
675
"displayMode": "list",
676
"placement": "bottom",
677
"showLegend": true
678
},
679
"tooltip": {
680
"mode": "single",
681
"sort": "none"
682
}
683
},
684
"targets": [
685
{
686
"datasource": {
687
"type": "prometheus",
688
"uid": "P4169E866C3094E38"
689
},
690
"editorMode": "code",
691
"expr": "sum (increase (spicedb_cache_hits_total[$__rate_interval]))",
692
"legendFormat": "Hit",
693
"range": true,
694
"refId": "A"
695
},
696
{
697
"datasource": {
698
"type": "prometheus",
699
"uid": "P4169E866C3094E38"
700
},
701
"editorMode": "code",
702
"expr": "sum (increase (spicedb_cache_misses_total[$__rate_interval]))",
703
"hide": false,
704
"legendFormat": "Miss",
705
"range": true,
706
"refId": "B"
707
}
708
],
709
"title": "Cache Hit & Miss Rates [1m]",
710
"type": "timeseries"
711
},
712
{
713
"datasource": {
714
"type": "prometheus",
715
"uid": "P4169E866C3094E38"
716
},
717
"fieldConfig": {
718
"defaults": {
719
"color": {
720
"fixedColor": "yellow",
721
"mode": "fixed"
722
},
723
"custom": {
724
"axisCenteredZero": false,
725
"axisColorMode": "text",
726
"axisLabel": "",
727
"axisPlacement": "auto",
728
"barAlignment": 0,
729
"drawStyle": "line",
730
"fillOpacity": 0,
731
"gradientMode": "none",
732
"hideFrom": {
733
"legend": false,
734
"tooltip": false,
735
"viz": false
736
},
737
"lineInterpolation": "linear",
738
"lineWidth": 1,
739
"pointSize": 5,
740
"scaleDistribution": {
741
"type": "linear"
742
},
743
"showPoints": "auto",
744
"spanNulls": false,
745
"stacking": {
746
"group": "A",
747
"mode": "none"
748
},
749
"thresholdsStyle": {
750
"mode": "off"
751
}
752
},
753
"mappings": [],
754
"min": 0,
755
"thresholds": {
756
"mode": "absolute",
757
"steps": [
758
{
759
"color": "green",
760
"value": null
761
}
762
]
763
}
764
},
765
"overrides": []
766
},
767
"gridPos": {
768
"h": 8,
769
"w": 12,
770
"x": 12,
771
"y": 29
772
},
773
"id": 16,
774
"interval": "1m",
775
"options": {
776
"legend": {
777
"calcs": [],
778
"displayMode": "list",
779
"placement": "bottom",
780
"showLegend": true
781
},
782
"tooltip": {
783
"mode": "single",
784
"sort": "none"
785
}
786
},
787
"targets": [
788
{
789
"datasource": {
790
"type": "prometheus",
791
"uid": "P4169E866C3094E38"
792
},
793
"editorMode": "code",
794
"expr": "sum (increase (spicedb_cache_hits_total[$__rate_interval])) / sum (increase (spicedb_cache_misses_total[$__rate_interval]))",
795
"legendFormat": "Ratio",
796
"range": true,
797
"refId": "A"
798
}
799
],
800
"title": "Cache Hit/Miss Ratio [1m]",
801
"type": "timeseries"
802
},
803
{
804
"datasource": {
805
"type": "prometheus",
806
"uid": "P4169E866C3094E38"
807
},
808
"fieldConfig": {
809
"defaults": {
810
"color": {
811
"mode": "palette-classic"
812
},
813
"custom": {
814
"axisCenteredZero": false,
815
"axisColorMode": "text",
816
"axisLabel": "",
817
"axisPlacement": "auto",
818
"barAlignment": 0,
819
"drawStyle": "line",
820
"fillOpacity": 0,
821
"gradientMode": "none",
822
"hideFrom": {
823
"legend": false,
824
"tooltip": false,
825
"viz": false
826
},
827
"lineInterpolation": "linear",
828
"lineWidth": 1,
829
"pointSize": 5,
830
"scaleDistribution": {
831
"type": "linear"
832
},
833
"showPoints": "auto",
834
"spanNulls": false,
835
"stacking": {
836
"group": "A",
837
"mode": "none"
838
},
839
"thresholdsStyle": {
840
"mode": "off"
841
}
842
},
843
"mappings": [],
844
"thresholds": {
845
"mode": "absolute",
846
"steps": [
847
{
848
"color": "green",
849
"value": null
850
},
851
{
852
"color": "red",
853
"value": 80
854
}
855
]
856
},
857
"unit": "opm"
858
},
859
"overrides": []
860
},
861
"gridPos": {
862
"h": 8,
863
"w": 12,
864
"x": 0,
865
"y": 37
866
},
867
"id": 17,
868
"options": {
869
"legend": {
870
"calcs": [],
871
"displayMode": "list",
872
"placement": "bottom",
873
"showLegend": true
874
},
875
"tooltip": {
876
"mode": "single",
877
"sort": "none"
878
}
879
},
880
"targets": [
881
{
882
"datasource": {
883
"type": "prometheus",
884
"uid": "P4169E866C3094E38"
885
},
886
"editorMode": "code",
887
"expr": "sum(increase (gitpod_spicedb_requests_check_total[$__rate_interval])) by (consistency)",
888
"legendFormat": "__auto",
889
"range": true,
890
"refId": "A"
891
}
892
],
893
"title": "Check Request Consistency [1m] (client reported)",
894
"type": "timeseries"
895
}
896
],
897
"refresh": "",
898
"schemaVersion": 38,
899
"style": "dark",
900
"tags": [],
901
"templating": {
902
"list": []
903
},
904
"time": {
905
"from": "now-1h",
906
"to": "now"
907
},
908
"timepicker": {
909
"refresh_intervals": [
910
"30s",
911
"1m",
912
"5m",
913
"15m",
914
"30m",
915
"1h",
916
"2h",
917
"1d"
918
]
919
},
920
"timezone": "utc",
921
"title": "Gitpod / Components / spicedb",
922
"uid": "tw0BBk-Vz",
923
"version": 2,
924
"weekStart": "monday"
925
}
926
927