8000 Release Rack Collector - adding support to accept custom latency buckets · errm/promenade · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rack Collector - adding support to accept custom latency buckets

Compare
Choose a tag to compare
@robertomiranda robertomiranda released this 27 Jul 10:40
· 130 commits to master since this release

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

0