pingcap / dm

Data Migration Platform
Apache License 2.0
456 stars 188 forks source link

Database connection number monitoring #2144

Open sunzhaoyang opened 3 years ago

sunzhaoyang commented 3 years ago

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:

Ehco1996 commented 3 years ago

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

Ehco1996 commented 3 years ago

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