1. Caddy version (
2. How I run Caddy:
systemctl start caddy.service
a. System environment:
RockyLinux 8.4 with systemd
curl -s localhost:2019/metrics|grep caddy_http_response_size_bytes_
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
3. The problem I’m having:
On exported prometheus monitoring, there are 3 kinds of metrics about caddy_http_response_size_bytes: bucket, count, sum.
What’s the difference of caddy_http_response_size_bytes_count and caddy_http_response_size_bytes_sum?
4. Error messages and/or full log output:
5. What I already tried:
6. Links to relevant resources:
caddy_http_response_size_bytes metric is a histogram, and so there are a few different metrics exposed about it.
Please read the Prometheus docs on histograms for a full explanation, but to quickly answer your question:
_count metric is the total number of observations made (i.e. if 50 responses were observed, the value would be 50)
_sum metric is the sum of all observed values (i.e. if the value of all 50 observed responses were
0.5, the value would be
This topic was automatically closed after 30 days. New replies are no longer allowed.