class Prometheus::Summary
- Prometheus::Summary
- Prometheus::Metric
- Reference
- Object
Overview
A Summary captures individual observations from an event or sample stream and summarizes them with count and sum.
Use a Summary for metrics where you need the count and sum, such as:
- Request latencies
- Request sizes
- Response sizes
Example:
summary = Summary.new("request_size", "Request size in bytes")
summary.observe(1024)
Summaries track:
- Count of all observed values
- Sum of all observed values