mod_stats_prometheus: make bucket sizes configurable
sando38 opened this issue · 0 comments
sando38 commented
Currently bucket sizes for time and data are hard coded. These values are tailored for Audio/Video use cases, however, TURN is not only used for these scenarios. Therefore, provide a configurational option to define them via the module section, e.g. like this:
mod_stats_prometheus:
buckets_time: [10, 20, 30, 45, 60, 120, 300]
buckets_size: [1024, 2048, 4096, 8192]
eturnal/src/mod_stats_prometheus.erl
Lines 31 to 50 in a5f7a13