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
Defined in:
metrics.crConstructors
Instance Method Summary
Instance methods inherited from class Prometheus::Metric
collect(io : IO) : Nilcollect : Array(Sample) collect, help : String help, labels : LabelSet labels, name : String name, type : String type
Constructor methods inherited from class Prometheus::Metric
new(name : String, help : String, labels : Hash(String, String) = nil)new(name : String, help : String, labels : Prometheus::LabelSet = LabelSet.new) new