-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: Clean up metrics #5858
Conversation
metrics/ddl.go
Outdated
WorkerWaitSchemaChanged = "wait_schema_changed" | ||
DDLWorkerHistogram = prometheus.NewHistogramVec( | ||
prometheus.HistogramOpts{ | ||
Namespace: "tidb", | ||
Subsystem: "ddl", | ||
Name: "ddl_worker_operation", | ||
Name: "worker_operation", |
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.
How about worker_duration
?
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.
worker_operation_duration is better.
metrics/meta.go
Outdated
@@ -20,8 +20,8 @@ import ( | |||
// Metrics | |||
var ( | |||
GlobalAutoID = "global" | |||
TableAutoIDAlloc = "table" | |||
TableAutoIDRebase = "table_rebase" | |||
TableAutoIDAlloc = "id_alloc" |
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.
How about just alloc
and rebase
?
And the subsystem name change to autoid
?
@coocood PTAL |
/run-all-tests |
LGTM |
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
@@ -32,11 +32,11 @@ const ( | |||
LabelDDL = "ddl" | |||
LabelGCWorker = "gcworker" | |||
|
|||
opSucc = "op_succ" |
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.
Remind: this may also involves some changes in prometheus dashboard~
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.
Yes. Will do.
Make metrics content more clear and compact.