Skip to content

Commit 99d3125

Browse files
samiulsamitamalsaha
authored andcommitted
Fix transient errors for empty blobstorage panels
Signed-off-by: sami <sami@appscode.com>
1 parent 9b87d88 commit 99d3125

File tree

1 file changed

+48
-3
lines changed

1 file changed

+48
-3
lines changed

charts/platform-grafana-dashboards/dashboards/b3/dashboard.json

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@
528528
"sortBy": [
529529
{
530530
"desc": true,
531-
"displayName": "Error Count"
531+
"displayName": "P99 Latency (s)"
532532
}
533533
]
534534
},
@@ -584,6 +584,7 @@
584584
"id": 6,
585585
"targets": [
586586
{
587+
"datasource": "${datasource}",
587588
"expr": "sum(rate(b3_auth_attempts_total{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
588589
"legendFormat": "Auth Attempts",
589590
"refId": "A"
@@ -630,6 +631,7 @@
630631
"id": 30,
631632
"targets": [
632633
{
634+
"datasource": "${datasource}",
633635
"expr": "(sum by(auth_type)(rate(b3_auth_attempts_total{namespace=\"$namespace\", pod=~\"$pod\", auth_type!~\"None|\"}[5m]))) or on() vector(0)",
634636
"legendFormat": "{{ "{{" }}auth_type{{ "}}" }}",
635637
"refId": "A"
@@ -677,6 +679,7 @@
677679
"id": 7,
678680
"targets": [
679681
{
682+
"datasource": "${datasource}",
680683
"expr": "(sum by(auth_type)(rate(b3_auth_failures_total{namespace=\"$namespace\", pod=~\"$pod\", auth_type!~\"None|\"}[5m]))) or on() vector(0)",
681684
"legendFormat": "{{ "{{" }}auth_type{{ "}}" }}",
682685
"refId": "A"
@@ -696,6 +699,7 @@
696699
"id": 32,
697700
"targets": [
698701
{
702+
"datasource": "${datasource}",
699703
"expr": "sum(rate(b3_authz_check_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
700704
"legendFormat": "Check Rate",
701705
"refId": "A"
@@ -724,11 +728,13 @@
724728
"id": 33,
725729
"targets": [
726730
{
731+
"datasource": "${datasource}",
727732
"expr": "sum(rate(b3_authz_check_allowed_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
728733
"legendFormat": "Allowed",
729734
"refId": "A"
730735
},
731736
{
737+
"datasource": "${datasource}",
732738
"expr": "sum(rate(b3_authz_check_denied_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
733739
"legendFormat": "Denied",
734740
"refId": "B"
@@ -749,6 +755,7 @@
749755
"id": 35,
750756
"targets": [
751757
{
758+
"datasource": "${datasource}",
752759
"expr": "sum(increase(b3_authz_check_count{namespace=\"$namespace\", pod=~\"$pod\", authz_server_error=\"true\"}[5m])) or on() vector(0)",
753760
"legendFormat": "Server Errors",
754761
"refId": "A"
@@ -806,6 +813,7 @@
806813
},
807814
"targets": [
808815
{
816+
"datasource": "${datasource}",
809817
"expr": "sum(increase(b3_authz_check_denied_count{namespace=\"$namespace\", pod=~\"$pod\"}[$__range]))",
810818
"refId": "A"
811819
}
@@ -837,6 +845,7 @@
837845
"id": 8,
838846
"targets": [
839847
{
848+
"datasource": "${datasource}",
840849
"expr": "sum(rate(b3_db_client_operation_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
841850
"legendFormat": "Query Rate",
842851
"refId": "A"
@@ -856,6 +865,7 @@
856865
"id": 40,
857866
"targets": [
858867
{
868+
"datasource": "${datasource}",
859869
"expr": "sum(rate(b3_db_client_operation_count{namespace=\"$namespace\", pod=~\"$pod\", error=\"true\"}[5m])) or on() vector(0)",
860870
"legendFormat": "Error Rate",
861871
"refId": "A"
@@ -875,16 +885,19 @@
875885
"id": 42,
876886
"targets": [
877887
{
888+
"datasource": "${datasource}",
878889
"expr": "histogram_quantile(0.99, sum(rate(b3_db_client_operation_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) by (le))",
879890
"legendFormat": "P99",
880891
"refId": "A"
881892
},
882893
{
894+
"datasource": "${datasource}",
883895
"expr": "histogram_quantile(0.95, sum(rate(b3_db_client_operation_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) by (le))",
884896
"legendFormat": "P95",
885897
"refId": "B"
886898
},
887899
{
900+
"datasource": "${datasource}",
888901
"expr": "histogram_quantile(0.50, sum(rate(b3_db_client_operation_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) by (le))",
889902
"legendFormat": "P50",
890903
"refId": "C"
@@ -916,11 +929,13 @@
916929
"id": 43,
917930
"targets": [
918931
{
932+
"datasource": "${datasource}",
919933
"expr": "sum(b3_db_connections_active{namespace=\"$namespace\", pod=~\"$pod\"}) or on() vector(0)",
920934
"legendFormat": "Active",
921935
"refId": "A"
922936
},
923937
{
938+
"datasource": "${datasource}",
924939
"expr": "sum(b3_db_connections_idle{namespace=\"$namespace\", pod=~\"$pod\"}) or on() vector(0)",
925940
"legendFormat": "Idle",
926941
"refId": "B"
@@ -940,6 +955,7 @@
940955
"id": 45,
941956
"targets": [
942957
{
958+
"datasource": "${datasource}",
943959
"expr": "sum(increase(b3_db_client_connection_error_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
944960
"legendFormat": "Connection Errors",
945961
"refId": "A"
@@ -972,6 +988,7 @@
972988
"id": 10,
973989
"targets": [
974990
{
991+
"datasource": "${datasource}",
975992
"expr": "sum(increase(b3_messaging_reconnect_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
976993
"legendFormat": "Reconnections",
977994
"refId": "A"
@@ -991,6 +1008,7 @@
9911008
"id": 11,
9921009
"targets": [
9931010
{
1011+
"datasource": "${datasource}",
9941012
"expr": "sum(increase(b3_messaging_disconnect_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
9951013
"legendFormat": "Disconnections",
9961014
"refId": "A"
@@ -1058,6 +1076,7 @@
10581076
},
10591077
"targets": [
10601078
{
1079+
"datasource": "${datasource}",
10611080
"expr": "sum(increase(b3_messaging_subscription_error_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
10621081
"legendFormat": "Subscription Errors",
10631082
"refId": "A"
@@ -1090,6 +1109,7 @@
10901109
"id": 12,
10911110
"targets": [
10921111
{
1112+
"datasource": "${datasource}",
10931113
"expr": "sum(rate(b3_proxy_k8s_operation_total{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
10941114
"legendFormat": "Proxy Request Rate",
10951115
"refId": "A"
@@ -1130,6 +1150,7 @@
11301150
"id": 60,
11311151
"targets": [
11321152
{
1153+
"datasource": "${datasource}",
11331154
"expr": "sum by(proxy_k8s_cluster)(rate(b3_proxy_k8s_operation_total{namespace=\"$namespace\", pod=~\"$pod\", proxy_k8s_cluster!~\"None|\"}[5m])) or on() vector(0)",
11341155
"legendFormat": "Cluster: {{ "{{" }}proxy_k8s_cluster{{ "}}" }}",
11351156
"refId": "A"
@@ -1149,6 +1170,7 @@
11491170
"id": 61,
11501171
"targets": [
11511172
{
1173+
"datasource": "${datasource}",
11521174
"expr": "sum(rate(b3_proxy_k8s_operation_total{namespace=\"$namespace\", pod=~\"$pod\", proxy_request_status_code=~\"4..|5..\"}[5m])) or on() vector(0)",
11531175
"legendFormat": "Error Rate",
11541176
"refId": "A"
@@ -1168,16 +1190,19 @@
11681190
"id": 13,
11691191
"targets": [
11701192
{
1193+
"datasource": "${datasource}",
11711194
"expr": "histogram_quantile(0.99, sum(rate(b3_proxy_request_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) by (le)) or vector(0)",
11721195
"legendFormat": "P99 Latency",
11731196
"refId": "A"
11741197
},
11751198
{
1199+
"datasource": "${datasource}",
11761200
"expr": "histogram_quantile(0.95, sum(rate(b3_proxy_request_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) by (le)) or vector(0)",
11771201
"legendFormat": "P95 Latency",
11781202
"refId": "B"
11791203
},
11801204
{
1205+
"datasource": "${datasource}",
11811206
"expr": "histogram_quantile(0.50, sum(rate(b3_proxy_request_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) by (le)) or vector(0)",
11821207
"legendFormat": "P50 Latency",
11831208
"refId": "C"
@@ -1218,6 +1243,7 @@
12181243
"id": 63,
12191244
"targets": [
12201245
{
1246+
"datasource": "${datasource}",
12211247
"expr": "histogram_quantile(0.95, sum by(proxy_k8s_cluster, le)(rate(b3_proxy_request_duration_bucket{namespace=\"$namespace\", pod=~\"$pod\", proxy_k8s_cluster!~\"None|\"}[5m]))) or on() vector(0)",
12221248
"legendFormat": "{{ "{{" }}proxy_k8s_cluster{{ "}}" }} P95",
12231249
"refId": "A"
@@ -1264,6 +1290,7 @@
12641290
"id": 64,
12651291
"targets": [
12661292
{
1293+
"datasource": "${datasource}",
12671294
"expr": "sum by(proxy_request_status_code)(rate(b3_proxy_k8s_operation_total{namespace=\"$namespace\", pod=~\"$pod\", proxy_request_status_code!~\"None|\"}[5m])) or on() vector(0)",
12681295
"legendFormat": "{{ "{{" }}proxy_request_status_code{{ "}}" }}",
12691296
"refId": "A"
@@ -1296,6 +1323,7 @@
12961323
"id": 70,
12971324
"targets": [
12981325
{
1326+
"datasource": "${datasource}",
12991327
"expr": "sum(rate(b3_cluster_request_count{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
13001328
"legendFormat": "Request Rate",
13011329
"refId": "A"
@@ -1336,6 +1364,7 @@
13361364
"id": 71,
13371365
"targets": [
13381366
{
1367+
"datasource": "${datasource}",
13391368
"expr": "sum by(http_request_method)(rate(b3_cluster_request_count{namespace=\"$namespace\", pod=~\"$pod\", http_request_method!~\"None|\"}[5m])) or on() vector(0)",
13401369
"legendFormat": "{{ "{{" }}http_request_method{{ "}}" }}",
13411370
"refId": "A"
@@ -1355,6 +1384,7 @@
13551384
"id": 72,
13561385
"targets": [
13571386
{
1387+
"datasource": "${datasource}",
13581388
"expr": "sum(rate(b3_cluster_request_count{namespace=\"$namespace\", pod=~\"$pod\", http_response_status_code=~\"4..|5..\"}[5m])) or on() vector(0)",
13591389
"legendFormat": "Error Rate",
13601390
"refId": "A"
@@ -1457,6 +1487,7 @@
14571487
"id": 80,
14581488
"targets": [
14591489
{
1490+
"datasource": "${datasource}",
14601491
"expr": "sum(rate(b3_license_issuances_total{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
14611492
"legendFormat": "Issuance Rate",
14621493
"refId": "A"
@@ -1497,6 +1528,7 @@
14971528
"id": 81,
14981529
"targets": [
14991530
{
1531+
"datasource": "${datasource}",
15001532
"expr": "sum by(license_type)(rate(b3_license_issuances_total{namespace=\"$namespace\", pod=~\"$pod\", license_type!~\"None|\"}[5m])) or on() vector(0)",
15011533
"legendFormat": "{{ "{{" }}license_type{{ "}}" }}",
15021534
"refId": "A"
@@ -1520,6 +1552,7 @@
15201552
"id": 83,
15211553
"targets": [
15221554
{
1555+
"datasource": "${datasource}",
15231556
"expr": "sum(rate(b3_license_issuances_total{namespace=\"$namespace\", pod=~\"$pod\", success=\"false\"}[5m])) or on() vector(0)",
15241557
"legendFormat": "Failed Issuance Rate",
15251558
"refId": "A"
@@ -1539,6 +1572,7 @@
15391572
"id": 84,
15401573
"targets": [
15411574
{
1575+
"datasource": "${datasource}",
15421576
"expr": "sum(rate(b3_license_validations_total{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
15431577
"legendFormat": "Validation Rate",
15441578
"refId": "A"
@@ -1579,6 +1613,7 @@
15791613
"id": 85,
15801614
"targets": [
15811615
{
1616+
"datasource": "${datasource}",
15821617
"expr": "sum by(license_type)(rate(b3_license_validations_total{namespace=\"$namespace\", pod=~\"$pod\", license_type!~\"None|\"}[5m])) or on() vector(0)",
15831618
"legendFormat": "{{ "{{" }}license_type{{ "}}" }}",
15841619
"refId": "A"
@@ -1602,6 +1637,7 @@
16021637
"id": 87,
16031638
"targets": [
16041639
{
1640+
"datasource": "${datasource}",
16051641
"expr": "sum(rate(b3_license_validations_total{namespace=\"$namespace\", pod=~\"$pod\", success=\"false\"}[5m])) or on() vector(0)",
16061642
"legendFormat": "Failed Validation Rate",
16071643
"refId": "A"
@@ -1633,6 +1669,7 @@
16331669
"id": 90,
16341670
"targets": [
16351671
{
1672+
"datasource": "${datasource}",
16361673
"expr": "sum(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\"}[5m])) or on() vector(0)",
16371674
"legendFormat": "Operation Rate",
16381675
"refId": "A"
@@ -1673,7 +1710,8 @@
16731710
"id": 91,
16741711
"targets": [
16751712
{
1676-
"expr": "sum by(operation)(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\", operation!~\"None|\"}[5m])) or on() vector(0)",
1713+
"datasource": "${datasource}",
1714+
"expr": "(sum by(operation)(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\", operation!~\"None|\"}[5m]))) or vector(0)",
16771715
"legendFormat": "{{ "{{" }}operation{{ "}}" }}",
16781716
"refId": "A"
16791717
}
@@ -1713,7 +1751,8 @@
17131751
"id": 92,
17141752
"targets": [
17151753
{
1716-
"expr": "sum by(storage_type)(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\", storage_type!~\"None|\"}[5m])) or on() vector(0)",
1754+
"datasource": "${datasource}",
1755+
"expr": "(sum by(storage_type)(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\", storage_type!~\"None|\"}[5m]))) or vector(0)",
17171756
"legendFormat": "{{ "{{" }}storage_type{{ "}}" }}",
17181757
"refId": "A"
17191758
}
@@ -1732,6 +1771,7 @@
17321771
"id": 93,
17331772
"targets": [
17341773
{
1774+
"datasource": "${datasource}",
17351775
"expr": "sum(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\", success=\"false\"}[5m])) or on() vector(0)",
17361776
"legendFormat": "Error Rate",
17371777
"refId": "A"
@@ -1772,6 +1812,7 @@
17721812
"id": 95,
17731813
"targets": [
17741814
{
1815+
"datasource": "${datasource}",
17751816
"expr": "sum by(operation)(rate(b3_blobfs_operations_total{namespace=\"$namespace\", pod=~\"$pod\", success=\"false\", operation!~\"None|\"}[5m])) or on() vector(0)",
17761817
"legendFormat": "{{ "{{" }}operation{{ "}}" }}",
17771818
"refId": "A"
@@ -1825,6 +1866,7 @@
18251866
},
18261867
"targets": [
18271868
{
1869+
"datasource": "${datasource}",
18281870
"expr": "sum(b3_gitea_users{namespace=\"$namespace\", pod=~\"$pod\"})",
18291871
"refId": "A"
18301872
}
@@ -1865,6 +1907,7 @@
18651907
},
18661908
"targets": [
18671909
{
1910+
"datasource": "${datasource}",
18681911
"expr": "sum(b3_gitea_organizations{namespace=\"$namespace\", pod=~\"$pod\"})",
18691912
"refId": "A"
18701913
}
@@ -1905,6 +1948,7 @@
19051948
},
19061949
"targets": [
19071950
{
1951+
"datasource": "${datasource}",
19081952
"expr": "sum(b3_gitea_teams{namespace=\"$namespace\", pod=~\"$pod\"})",
19091953
"refId": "A"
19101954
}
@@ -1923,6 +1967,7 @@
19231967
"id": 1003,
19241968
"targets": [
19251969
{
1970+
"datasource": "${datasource}",
19261971
"expr": "sum(b3_gitea_users{namespace=\"$namespace\", pod=~\"$pod\"}) or on() vector(0)",
19271972
"legendFormat": "Users",
19281973
"refId": "A"

0 commit comments

Comments
 (0)