-
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: Add prometheus metrics #1738
Conversation
return errors.Trace(err) | ||
} | ||
|
||
count += len(handles) | ||
log.Infof("[ddl] added column for %v rows", count) | ||
batchHandleDataHistogram.WithLabelValues(batchAddCol, strconv.Itoa(len(handles))).Observe(sub) |
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.
seem no need to use len(handles) as label value.
Subsystem: "ddl", | ||
Name: "waiting_jobs", | ||
Help: "Gauge of jobs.", | ||
}, []string{"job_type", "action_type"}) |
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.
type, action
PTAL @siddontang |
@@ -0,0 +1,57 @@ | |||
// Copyright 2016 PingCAP, Inc. |
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 think the filename should be "metrics"
LGTM |
@siddontang @hanfei1991 PTAL |
LGTM |
No description provided.