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

Add latency metrics to REST client #6409

Merged
merged 1 commit into from
Apr 3, 2015

Conversation

fgrzadkowski
Copy link
Contributor

This fixes #6357

This generates metrics like:

rest_client_request_latency_microseconds{url="http://127.0.0.1:8080/api/v1beta1/bindings?namespace=default",verb="POST",quantile="0.5"} 215198
rest_client_request_latency_microseconds{url="http://127.0.0.1:8080/api/v1beta1/bindings?namespace=default",verb="POST",quantile="0.9"} 819610
rest_client_request_latency_microseconds{url="http://127.0.0.1:8080/api/v1beta1/bindings?namespace=default",verb="POST",quantile="0.99"} 1.636494e+06
rest_client_request_latency_microseconds_sum{url="http://127.0.0.1:8080/api/v1beta1/bindings?namespace=default",verb="POST"} 3.97255688e+08
rest_client_request_latency_microseconds_count{url="http://127.0.0.1:8080/api/v1beta1/bindings?namespace=default",verb="POST"} 1223

prometheus.SummaryOpts{
Subsystem: restClientSubsystem,
Name: "request_latency_microseconds",
Help: "Request latency in microseconds. Broken down by URL",
Copy link
Member

Choose a reason for hiding this comment

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

Broken down by verb and URL?

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.

@wojtek-t
Copy link
Member

wojtek-t commented Apr 3, 2015

LGTM

wojtek-t added a commit that referenced this pull request Apr 3, 2015
Add latency metrics to REST client
@wojtek-t wojtek-t merged commit 9d43285 into kubernetes:master Apr 3, 2015
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.

Measure latency for client REST operations
3 participants