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

Added handling custom metrics to resource consumer. #18511

Merged
merged 1 commit into from
Dec 10, 2015

Conversation

jszczepkowski
Copy link
Contributor

Added handling custom metrics in Prometheus format to resource consumer.

@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 10, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/L

fmt.Fprintf(w, "# TYPE %s gauge\n", k)
fmt.Fprintf(w, "%s %f\n", k, v)
}
handler.metricsLock.Unlock()
Copy link
Member

Choose a reason for hiding this comment

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

Move this to defer right after the line where the lock is acquired .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@piosz
Copy link
Member

piosz commented Dec 10, 2015

LGTM, just a small nit

Added handling custom metrics in Prometheus format to resource consumer.
@k8s-bot
Copy link

k8s-bot commented Dec 10, 2015

GCE e2e test build/test passed for commit a6c4b961996aef2e77e5c910a0a22fc79a42ad24.

@jszczepkowski
Copy link
Contributor Author

PTAL

@piosz piosz added lgtm "Looks good to me", indicates that a PR is ready to be merged. e2e-not-required labels Dec 10, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 10, 2015

GCE e2e test build/test passed for commit 4f7cf8571989957bf9287368296071ef6c8b6797.

@k8s-bot
Copy link

k8s-bot commented Dec 10, 2015

GCE e2e test build/test passed for commit aade6e7.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 10, 2015
@k8s-github-robot k8s-github-robot merged commit ba30690 into kubernetes:master Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants