The `connection count` metrics in TiDB after v7.5 should add `resouce_group` in legendFormat
Open
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
Currently, the `connection count` metrics use `instance` as the legend format:
https://github.com/pingcap/tidb/blob/1b172b674fa37259fabc4fcbc205274d4091fcce/pkg/metrics/grafana/tidb.json#L2917-L2925
However, after TiDB support `resource_group`, the same instance can have multiple `resource_group`, if legend format does not include `resource_group`, the metrics showed to user will looks like "Not deduplicated"


Contributor guide
Assessment
This issue has not been assessed yet.