Skip to content

Commit d84c432

Browse files
authored
Correct gRPC dashboards (#738)
1 parent ef9408f commit d84c432

File tree

2 files changed

+133
-63
lines changed

2 files changed

+133
-63
lines changed

dashboards/grafana/grpc-proxy-details-dashboard.json

Lines changed: 51 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"editable": true,
1616
"fiscalYearStartMonth": 0,
1717
"graphTooltip": 0,
18-
"id": 6,
18+
"id": 20,
1919
"links": [
2020
{
2121
"icon": "dashboard",
@@ -128,6 +128,7 @@
128128
},
129129
{
130130
"datasource": "prometheus",
131+
"description": "The connections over the last 5 minutes",
131132
"fieldConfig": {
132133
"defaults": {
133134
"color": {
@@ -179,7 +180,9 @@
179180
"type": "stat"
180181
},
181182
{
182-
"datasource": "prometheus",
183+
"datasource": {
184+
"type": "prometheus"
185+
},
183186
"fieldConfig": {
184187
"defaults": {
185188
"color": {
@@ -231,15 +234,19 @@
231234
"targets": [
232235
{
233236
"datasource": "prometheus",
234-
"expr": "sum(coherence_grpc_named_cache_proxy_task_backlog{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"})",
237+
"editorMode": "code",
238+
"expr": "sum(coherence_grpc_proxy_task_backlog{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"})",
239+
"range": true,
235240
"refId": "A"
236241
}
237242
],
238243
"title": "Backlog",
239244
"type": "stat"
240245
},
241246
{
242-
"datasource": "prometheus",
247+
"datasource": {
248+
"type": "prometheus"
249+
},
243250
"fieldConfig": {
244251
"defaults": {
245252
"color": {
@@ -291,7 +298,9 @@
291298
"targets": [
292299
{
293300
"datasource": "prometheus",
294-
"expr": "sum(coherence_grpc_named_cache_proxy_error_request_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"})",
301+
"editorMode": "code",
302+
"expr": "sum(coherence_grpc_proxy_error_request_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"})",
303+
"range": true,
295304
"refId": "A"
296305
}
297306
],
@@ -624,7 +633,9 @@
624633
"type": "table"
625634
},
626635
{
627-
"datasource": "prometheus",
636+
"datasource": {
637+
"type": "prometheus"
638+
},
628639
"description": "",
629640
"fieldConfig": {
630641
"defaults": {
@@ -710,7 +721,7 @@
710721
{
711722
"datasource": "prometheus",
712723
"editorMode": "code",
713-
"expr": "sum(coherence_grpc_named_cache_proxy_request_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"}) - sum(coherence_grpc_named_cache_proxy_request_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval) > 0",
724+
"expr": "sum(coherence_grpc_proxy_messages_received_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"}) - sum(coherence_grpc_proxy_messages_received_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval) > 0",
714725
"format": "time_series",
715726
"instant": false,
716727
"interval": "",
@@ -719,11 +730,13 @@
719730
"refId": "A"
720731
}
721732
],
722-
"title": "Requests",
733+
"title": "Messages Received",
723734
"type": "timeseries"
724735
},
725736
{
726-
"datasource": "prometheus",
737+
"datasource": {
738+
"type": "prometheus"
739+
},
727740
"description": "",
728741
"fieldConfig": {
729742
"defaults": {
@@ -809,7 +822,7 @@
809822
{
810823
"datasource": "prometheus",
811824
"editorMode": "code",
812-
"expr": "sum(coherence_grpc_named_cache_proxy_responses_sent_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"}) - sum(coherence_grpc_named_cache_proxy_responses_sent_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval) > 0",
825+
"expr": "sum(coherence_grpc_proxy_responses_sent_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"}) - sum(coherence_grpc_proxy_responses_sent_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval) > 0",
813826
"format": "time_series",
814827
"instant": false,
815828
"interval": "",
@@ -818,11 +831,13 @@
818831
"refId": "A"
819832
}
820833
],
821-
"title": "Responses",
834+
"title": "Responses Sent",
822835
"type": "timeseries"
823836
},
824837
{
825-
"datasource": "prometheus",
838+
"datasource": {
839+
"type": "prometheus"
840+
},
826841
"description": "",
827842
"fieldConfig": {
828843
"defaults": {
@@ -907,7 +922,7 @@
907922
{
908923
"datasource": "prometheus",
909924
"editorMode": "code",
910-
"expr": "coherence_grpc_named_cache_proxy_error_request_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} - coherence_grpc_named_cache_proxy_error_request_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval > 0",
925+
"expr": "coherence_grpc_proxy_task_backlog{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} - coherence_grpc_proxy_task_backlog{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval > 0",
911926
"format": "time_series",
912927
"instant": false,
913928
"interval": "",
@@ -920,7 +935,9 @@
920935
"type": "timeseries"
921936
},
922937
{
923-
"datasource": "prometheus",
938+
"datasource": {
939+
"type": "prometheus"
940+
},
924941
"description": "",
925942
"fieldConfig": {
926943
"defaults": {
@@ -1005,7 +1022,7 @@
10051022
{
10061023
"datasource": "prometheus",
10071024
"editorMode": "code",
1008-
"expr": "coherence_grpc_named_cache_proxy_task_timeout_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} - coherence_grpc_named_cache_proxy_task_timeout_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval > 0",
1025+
"expr": "coherence_grpc_proxy_task_timeout_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} - coherence_grpc_proxy_task_timeout_count{member=\"${MemberName}\",cluster=\"${ClusterName:raw}\"} offset $__interval > 0",
10091026
"format": "time_series",
10101027
"instant": false,
10111028
"interval": "",
@@ -1028,8 +1045,13 @@
10281045
"list": [
10291046
{
10301047
"current": {
1048+
"selected": false,
1049+
"text": "None",
1050+
"value": ""
1051+
},
1052+
"datasource": {
1053+
"type": "prometheus"
10311054
},
1032-
"datasource": "prometheus",
10331055
"definition": "label_values(coherence_cluster_size,namespace)",
10341056
"hide": 0,
10351057
"includeAll": false,
@@ -1049,9 +1071,13 @@
10491071
},
10501072
{
10511073
"current": {
1052-
"selected": false
1074+
"selected": false,
1075+
"text": "main-grpc",
1076+
"value": "main-grpc"
1077+
},
1078+
"datasource": {
1079+
"type": "prometheus"
10531080
},
1054-
"datasource": "prometheus",
10551081
"definition": "",
10561082
"hide": 0,
10571083
"includeAll": false,
@@ -1074,9 +1100,11 @@
10741100
},
10751101
{
10761102
"current": {
1077-
"selected": false
1103+
"selected": false,
1104+
},
1105+
"datasource": {
1106+
"type": "prometheus"
10781107
},
1079-
"datasource": "prometheus",
10801108
"definition": "",
10811109
"hide": 2,
10821110
"includeAll": false,
@@ -1101,7 +1129,9 @@
11011129
"current": {
11021130
"selected": false
11031131
},
1104-
"datasource": "prometheus",
1132+
"datasource": {
1133+
"type": "prometheus"
1134+
},
11051135
"definition": "label_values(coherence_service_member_count{namespace=~\"${Namespace:.*}\",cluster=\"${ClusterName:raw}\"}, member)",
11061136
"hide": 0,
11071137
"includeAll": false,

0 commit comments

Comments
 (0)