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: Clean up metrics #5858

Merged
merged 3 commits into from
Feb 11, 2018
Merged

metrics: Clean up metrics #5858

merged 3 commits into from
Feb 11, 2018

Conversation

shenli
Copy link
Member

@shenli shenli commented Feb 11, 2018

Make metrics content more clear and compact.

@shenli
Copy link
Member Author

shenli commented Feb 11, 2018

@coocood @zimulala PTAL

metrics/ddl.go Outdated
WorkerWaitSchemaChanged = "wait_schema_changed"
DDLWorkerHistogram = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: "tidb",
Subsystem: "ddl",
Name: "ddl_worker_operation",
Name: "worker_operation",
Copy link
Member

Choose a reason for hiding this comment

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

How about worker_duration?

Copy link
Member Author

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"
Copy link
Member

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?

@shenli
Copy link
Member Author

shenli commented Feb 11, 2018

@coocood PTAL

@shenli
Copy link
Member Author

shenli commented Feb 11, 2018

/run-all-tests

@coocood
Copy link
Member

coocood commented Feb 11, 2018

LGTM

Copy link
Contributor

@zimulala zimulala left a 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"
Copy link
Contributor

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~

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Will do.

@shenli shenli merged commit e5ffc40 into pingcap:master Feb 11, 2018
@shenli shenli deleted the refactor-metrics branch February 11, 2018 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants