dm icon indicating copy to clipboard operation
dm copied to clipboard

Database connection number monitoring

Open sunzhaoyang opened this issue 4 years ago • 2 comments

Feature Request

Is your feature request related to a problem? Please describe:

https://github.com/pingcap/dm/issues/2127

Describe the feature you'd like:

  1. Monitor the number of connections to upstream and downstream per worker
  2. Exceeds set value (currently 1 connection?) Alarm

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

sunzhaoyang avatar Sep 16 '21 07:09 sunzhaoyang

related to https://github.com/pingcap/dm/issues/2142

Ehco1996 avatar Sep 16 '21 10:09 Ehco1996

~~maybe we can use this package ? https://github.com/dlmiddlecote/sqlstats~~

wow, prometheus_client_golang already Implemented this feature in https://github.com/prometheus/client_golang/pull/866

cc @lance6716 @lichunzhu

Ehco1996 avatar Sep 17 '21 02:09 Ehco1996