Skip to content

Commit 4f0ae8f

Browse files
authored
Merge pull request #1404 from LiZhenCheng9527/grafana-fix
Changed the metric name of grafana to match the metric name reported by kmesh
2 parents c5d11ab + 8e554d1 commit 4f0ae8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/addons/grafana.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ data:
707707
"uid": "PBFA97CFB590B2093"
708708
},
709709
"editorMode": "code",
710-
"expr": "sum(kmesh_operation_duration_seconds_sum{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name) \r\n/\r\nsum(kmesh_operation_duration_seconds_count{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name)\r\n",
710+
"expr": "sum(kmesh_bpf_prog_operation_duration_sum{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name) \r\n/\r\nsum(kmesh_bpf_prog_operation_duration_count{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name)\r\n",
711711
"instant": false,
712712
"legendFormat": "__auto",
713713
"range": true,

samples/addons/kmesh_performance-monitoring.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@
486486
"uid": "PBFA97CFB590B2093"
487487
},
488488
"editorMode": "code",
489-
"expr": "sum(kmesh_operation_duration_seconds_sum{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name) \r\n/\r\nsum(kmesh_operation_duration_seconds_count{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name)\r\n",
489+
"expr": "sum(kmesh_bpf_prog_operation_duration_sum{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name) \r\n/\r\nsum(kmesh_bpf_prog_operation_duration_count{app=\"kmesh\", namespace=\"kmesh-system\", operation_type=\"SOCK_TRAFFIC_CONTROL\"}) by (node_name)\r\n",
490490
"instant": false,
491491
"legendFormat": "__auto",
492492
"range": true,

0 commit comments

Comments
 (0)