pingcap/tidb

Add Slow Query QPS Metrics

Open

#18,708 创建于 2020年7月21日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (6,186 fork)batch import
component/metricsfeature/acceptedhelp wantedtype/feature-request

仓库指标

Star
 (40,090 star)
PR 合并指标
 (平均合并 14天 4小时) (30 天内合并 346 个 PR)

描述

Feature Request

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

At present, TiDB prints all the queries whose execution time exceeds @@tidb_slow_log_threshold(300 ms by default) to the slow query log. In some cases, users want to monitor the slow query QPS to monitor the database performance over time.

Describe the feature you'd like:

Add slow query QPS metrics, display it to Grafana or other monitors.

  • Category: Feature, Usability
  • Value: Make it easier for performance diagnosis
  • Value Score: 3

Describe alternatives you've considered:

N/A

Teachability, Documentation, Adoption, Migration Strategy:

N/A

贡献者指南