Skip to content

Commit

Permalink
refine resource group metric name (#8161)
Browse files Browse the repository at this point in the history
close #8162
  • Loading branch information
guo-shaoge authored Oct 8, 2023
1 parent d696c00 commit 971ec1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/MPPTaskId.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct MPPGatherId
String toString() const
{
return fmt::format(
"<gather_id:{}, query_ts:{}, local_query_id:{}, server_id:{}, start_ts:{}, resource_gorup: {}>",
"<gather_id:{}, query_ts:{}, local_query_id:{}, server_id:{}, start_ts:{}, resource_group: {}>",
gather_id,
query_id.query_ts,
query_id.local_query_id,
Expand Down
12 changes: 6 additions & 6 deletions metrics/grafana/tiflash_summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -16277,7 +16277,7 @@
"exemplar": true,
"expr": "max(tiflash_resource_group{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"remaining_tokens\", instance=~\"$instance\"}) by (instance,resource_group)",
"interval": "",
"legendFormat": "{{instance}}-{{resource_group}}",
"legendFormat": "remaining_tokens-{{instance}}-{{resource_group}}",
"queryType": "randomWalk",
"refId": "A"
},
Expand All @@ -16286,39 +16286,39 @@
"expr": "max(tiflash_resource_group{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"avg_speed\", instance=~\"$instance\"}) by (instance,resource_group)",
"hide": true,
"interval": "",
"legendFormat": "{{instance}}-{{resource_group}}",
"legendFormat": "avg_speed-{{instance}}-{{resource_group}}",
"refId": "B"
},
{
"exemplar": true,
"expr": "max(tiflash_resource_group{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"total_consumption\", instance=~\"$instance\"}) by (instance,resource_group)",
"hide": true,
"interval": "",
"legendFormat": "{{instance}}-{{resource_group}}",
"legendFormat": "total_consumption-{{instance}}-{{resource_group}}",
"refId": "C"
},
{
"exemplar": true,
"expr": "max(tiflash_resource_group{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"bucket_fill_rate\", instance=~\"$instance\"}) by (instance,resource_group)",
"hide": true,
"interval": "",
"legendFormat": "{{instance}}-{{resource_group}}",
"legendFormat": "bucket_fill_rate-{{instance}}-{{resource_group}}",
"refId": "D"
},
{
"exemplar": true,
"expr": "max(tiflash_resource_group{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"bucket_capacity\", instance=~\"$instance\"}) by (instance,resource_group)",
"hide": true,
"interval": "",
"legendFormat": "{{instance}}-{{resource_group}}",
"legendFormat": "bucket_capacity-{{instance}}-{{resource_group}}",
"refId": "E"
},
{
"exemplar": true,
"expr": "max(tiflash_resource_group{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"fetch_tokens_from_gac_count\", instance=~\"$instance\"}) by (instance,resource_group)",
"hide": true,
"interval": "",
"legendFormat": "{{instance}}-{{resource_group}}",
"legendFormat": "fetch_tokens_from_gac_count-{{instance}}-{{resource_group}}",
"refId": "F"
}
],
Expand Down

0 comments on commit 971ec1c

Please sign in to comment.