Abnormal Retrieval of tidb_server_connections Metric After Version 7.5.1

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 7.5.1版本后tidb_server_connections指标获取异常

| username: 田帅萌7


Connection Count IP duplication


Temporary solution: tidb_server_connections{k8s_cluster=“$k8s_cluster”, tidb_cluster=“$tidb_cluster”, resource_group=“default”}
It should be a bug.

| username: aytrack | Original post link

The issue has already been fixed on the master branch. Fix PR: server, metrics: remove the connection count on server, only use the metrics by YangKeao · Pull Request #51996 · pingcap/tidb · GitHub

| username: 有猫万事足 | Original post link

It is indeed a bug, and a fix has been provided above. Here is the previous bug confirmation link.