-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Conversation
Labelling this PR as size/L |
a6c4b96
to
4f7cf85
Compare
fmt.Fprintf(w, "# TYPE %s gauge\n", k) | ||
fmt.Fprintf(w, "%s %f\n", k, v) | ||
} | ||
handler.metricsLock.Unlock() |
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.
Move this to defer right after the line where the lock is acquired .
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.
Done.
LGTM, just a small nit |
Added handling custom metrics in Prometheus format to resource consumer.
4f7cf85
to
aade6e7
Compare
GCE e2e test build/test passed for commit a6c4b961996aef2e77e5c910a0a22fc79a42ad24. |
PTAL |
GCE e2e test build/test passed for commit 4f7cf8571989957bf9287368296071ef6c8b6797. |
GCE e2e test build/test passed for commit aade6e7. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
Added handling custom metrics in Prometheus format to resource consumer.