Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: record tidb_server_handle_query_duration_seconds inaccurate #42025

Closed
srstack opened this issue Mar 8, 2023 · 0 comments · Fixed by #42026
Closed

metrics: record tidb_server_handle_query_duration_seconds inaccurate #42025

srstack opened this issue Mar 8, 2023 · 0 comments · Fixed by #42026
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@srstack
Copy link
Contributor

srstack commented Mar 8, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. set status.record-db-label=true
  2. use test
  3. select * from mysql.user;
  4. query metric tidb_server_handle_query_duration_seconds from prometheus

2. What did you expect to see? (Required)

tidb_executor_statement_total{db="mysql", instance="127.0.0.1:10080", job="tidb", type="Select"}

3. What did you see instead (Required)

tidb_executor_statement_total{db="test", instance="127.0.0.1:10080", job="tidb", type="Select"}

4. What is your TiDB version? (Required)

nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants