prometheus.ex v3.0.5 Release Notes
Release Date: 2019-01-24 // over 4 years ago-
No data yet ๐
You can check the official repo
Previous changes from v2.0.0
-
๐ฅ Breaking change:
All observe_duration/track_inprogress functions no longer do implicit fun execution.
def track\_checked\_out\_sockets(checkout\_fun) doGauge.track\_inprogress([name: :my\_pool\_checked\_out], checkout\_fun)end
has to be rewritten as
def track\_checked\_out\_sockets(checkout\_fun) doGauge.track\_inprogress([name: :my\_pool\_checked\_out], checkout\_fun.())end
Counter
๐ New helper macros:
- ๐ป count_exceptions [with optional Exception type]
- count_no_exceptions
Metrics
Metrics can be created declaratively:
@histogram [name: :http\_request\_duration\_milliseconds, labels: [:method], buckets: [100, 300, 500, 750, 1000], help: "Http Request execution time"]
when used,
__declare_prometheus_metrics__ /0
will be auto-generated.