Where does the active connection data come from?

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

Original topic: active connection数据从哪里获取的

| username: h5n1

The dashboard monitoring shows active connections, but the connection monitoring in Grafana does not have active statistics. I couldn’t find any metrics that separately store active connections in Prometheus.


| username: DBRE | Original post link

It wouldn’t be calculated like this, would it? “select count(*) from information_schema.processlist where Command !=‘Sleep’;”

| username: 小龙虾爱大龙虾 | Original post link

By looking at the network calls, I discovered the tidb_server_tokens metric, which is also used in the performance overview → connection count panel.

| username: h5n1 | Original post link

:+1: That means it is calculated based on the obtained token.

| username: dba远航 | Original post link

It is also possible that the information is not synchronized.

| username: h5n1 | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.