class MetricsCr::Metrics::Histogram

Defined in:

metrics_cr/metrics/histogram.cr

Constant Summary

DEFAULT_BUCKETS = [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10]

DEFAULT_BUCKETS are the default Histogram buckets. The default buckets are tailored to broadly measure the response time (in seconds) of a network service. (From DefBuckets client_golang)

Constructors

Instance Method Summary

Instance methods inherited from class MetricsCr::Metric

name : String name

Constructor methods inherited from class MetricsCr::Metric

new(name : String) new

Constructor Detail

def self.new(name : String, buckets : Array(Float64 | Int32) = DEFAULT_BUCKETS) #

[View source]

Instance Method Detail

def observe(value : Float64) : Nil #

[View source]
def value : Hash(String, Float64) #

[View source]