Rack Collector - adding support to accept custom latency buckets
Adding support for custom latency buckets. The default buckets cover a range of latencies from 5 ms to 10 s see, Prometheus::Client::Histogram::DEFAULT_BUCKETS, this is intended to capture the typical range of latencies for a web application. However this might not be suitable for your Service-Level Agreements (SLAs) and would be better to have a way to setup a more convenient buckets/bins
Developers will have now the option of passing a new variable when including the Rack Collector middleware to their Rack/Rails applications
# config/initializers/promenade.rb
Promenade.configure do |config|
config.rack_latency_buckets = [0.25, 0.350, 0.5, 1, 1.5, 2.5, 5, 10, 15, 19]
end
Added in #27