Skip to content

Add request/response body size histograms #10

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kivra-adalin
Copy link

This commit adds two new Prometheus histograms for measuring request and response body sizes in bytes:

  • cowboy_request_body_size_bytes
  • cowboy_response_body_size_bytes

Both metrics use the same labels as other request metrics and default buckets range from 0 to 16 MiB.

Open questions:

  • Are there any tests that need to be updated? rebar3 ct didn't run anything.
  • Would it be better to hard code the bucket size rather than relying on the programmatic access in prometheus_bucket?

This commit adds two new Prometheus histograms for measuring request and
response body sizes in bytes:
- cowboy_request_body_size_bytes
- cowboy_response_body_size_bytes

Both metrics use the same labels as other request metrics and default
buckets range from 0 to 16 MiB.
@eproxus
Copy link

eproxus commented Mar 25, 2025

Oops, it's from me but opened the PR with my work account by mistake 😛

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.

2 participants