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: add statement deadlock detect duration #14444

Merged
merged 3 commits into from
Jan 15, 2020

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Jan 10, 2020

Signed-off-by: Shuaipeng Yu jackysp@gmail.com

What problem does this PR solve?

If it is sth wrong with the deadlock detector, e.g. very slow, we need to know it.

What is changed and how it works?

Add statement deadlock detect duration.

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Code changes

  • Has exported function/method change

Related changes

  • Need to cherry-pick to the release branch

Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
@@ -90,6 +90,16 @@ var (
Help: "Bucketed histogram of a transaction execution duration, including retry.",
Buckets: prometheus.ExponentialBuckets(0.001, 2, 20), // 1ms ~ 1049s
}, []string{LblSQLType, LblType})

StatementDeadlockDetectDuration = prometheus.NewHistogram(
prometheus.HistogramOpts{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add a label to distinct the point_get duration?

@bb7133 bb7133 modified the milestone: v3.0.10 Jan 15, 2020
@cfzjywxk
Copy link
Contributor

LGTM

1 similar comment
@coocood
Copy link
Member

coocood commented Jan 15, 2020

LGTM

@coocood
Copy link
Member

coocood commented Jan 15, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 15, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Jan 15, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Jan 15, 2020

cherry pick to release-3.0 in PR #14484

@jackysp jackysp deleted the stmt_deadlock branch February 27, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/metrics status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants