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

daemon: instrument the gateway and api HTTP handlers #1799

Merged
merged 1 commit into from
Oct 5, 2015
Merged

Conversation

ghost
Copy link

@ghost ghost commented Oct 5, 2015

So that we can graph them using Prometheus. See #1763 and #1422.

This gets us the following metrics:

# HELP http_requests_total Total number of HTTP requests made.
# TYPE http_requests_total counter
http_requests_total{code="200",handler="api",method="get"} 54
http_requests_total{code="200",handler="gateway",method="get"} 60
http_requests_total{code="304",handler="gateway",method="get"} 30
# HELP http_request_duration_microseconds The HTTP request latencies in microseconds.
# TYPE http_request_duration_microseconds summary
http_request_duration_microseconds{handler="api",quantile="0.5"} 593.504
http_request_duration_microseconds{handler="api",quantile="0.9"} 852.337
http_request_duration_microseconds{handler="api",quantile="0.99"} 1054.733
http_request_duration_microseconds_sum{handler="api"} 35359.53
http_request_duration_microseconds_count{handler="api"} 54
http_request_duration_microseconds{handler="gateway",quantile="0.5"} 21147.23
http_request_duration_microseconds{handler="gateway",quantile="0.9"} 337680.504
http_request_duration_microseconds{handler="gateway",quantile="0.99"} 2.236680159e+06
http_request_duration_microseconds_sum{handler="gateway"} 2.1692309521000005e+07
http_request_duration_microseconds_count{handler="gateway"} 90
# HELP http_request_size_bytes The HTTP request sizes in bytes.
# TYPE http_request_size_bytes summary
http_request_size_bytes{handler="api",quantile="0.5"} 80
http_request_size_bytes{handler="api",quantile="0.9"} 80
http_request_size_bytes{handler="api",quantile="0.99"} 80
http_request_size_bytes_sum{handler="api"} 4320
http_request_size_bytes_count{handler="api"} 54
http_request_size_bytes{handler="gateway",quantile="0.5"} 587
http_request_size_bytes{handler="gateway",quantile="0.9"} 617
http_request_size_bytes{handler="gateway",quantile="0.99"} 645
http_request_size_bytes_sum{handler="gateway"} 52789
http_request_size_bytes_count{handler="gateway"} 90

@ghost ghost added the topic/gateway Topic gateway label Oct 5, 2015
@jbenet jbenet added the status/in-progress In progress label Oct 5, 2015
@whyrusleeping
Copy link
Member

woo!

jbenet added a commit that referenced this pull request Oct 5, 2015
daemon: instrument the gateway and api HTTP handlers
@jbenet jbenet merged commit bb8e231 into master Oct 5, 2015
@jbenet jbenet removed the status/in-progress In progress label Oct 5, 2015
@jbenet jbenet deleted the prometheus-http branch October 5, 2015 05:35
@ghost ghost mentioned this pull request Oct 5, 2015
88 tasks
hacdias pushed a commit to ipfs/boxo that referenced this pull request Jan 27, 2023
daemon: instrument the gateway and api HTTP handlers

This commit was moved from ipfs/kubo@bb8e231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/gateway Topic gateway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants