-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl, metrics: add job action and schema version information to metrics #7472
Conversation
/run-all-tests |
/run-unit-test |
|
||
// Metrics for ddl_worker.go. | ||
WorkerAddDDLJob = "add_job" | ||
WorkerRunDDLJob = "run_job" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also feel the label is not enough, so I also add a label.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PTAL @winkyao @shenli @crazycs520 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
Add job action and schema version information to metrics.
Remove "DDLJobErrCounter"(We didn't use it before in grafana) and add error count information to "DDLWorkerHistogram".
What is changed and how it works?
Add two labels.
Check List
Tests
Related changes
tidb-ansible
repositorypingcap/tidb-ansiable#508