Prometheus.ex v3.0.5 Prometheus.Buckets View Source

Histogram buckets generators.

Link to this section Summary

Functions

iex(2)> Prometheus.Buckets.new(:default)

[0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, :infinity]

Link to this section Functions

iex(2)> Prometheus.Buckets.new(:default)
[0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, :infinity]  

iex(3)> Prometheus.Buckets.new({:exponential, 100, 1.2, 3})
[100, 120, 144, :infinity]  

iex(2)> Prometheus.Buckets.new({:linear, 10, 5, 6})
[10, 15, 20, 25, 30, 35, :infinity]