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

ddl: Add prometheus metrics #1738

Merged
merged 4 commits into from
Sep 21, 2016
Merged

ddl: Add prometheus metrics #1738

merged 4 commits into from
Sep 21, 2016

Conversation

zimulala
Copy link
Contributor

No description provided.

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

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

Choose a reason for hiding this comment

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

type, action

@zimulala
Copy link
Contributor Author

PTAL @siddontang

@@ -0,0 +1,57 @@
// Copyright 2016 PingCAP, Inc.
Copy link
Member

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"

@shenli
Copy link
Member

shenli commented Sep 20, 2016

LGTM

@shenli
Copy link
Member

shenli commented Sep 20, 2016

@siddontang @hanfei1991 PTAL

@siddontang
Copy link
Member

LGTM

@zimulala zimulala merged commit a6aa328 into master Sep 21, 2016
@zimulala zimulala deleted the zimuxia/ddl-metrcs branch September 21, 2016 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants