Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_stats_prometheus: make bucket sizes configurable #61

Open
sando38 opened this issue Dec 18, 2023 · 0 comments
Open

mod_stats_prometheus: make bucket sizes configurable #61

sando38 opened this issue Dec 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sando38
Copy link
Collaborator

sando38 commented Dec 18, 2023

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] 

-define(SIZE_BUCKETS,
[1024 * 4,
1024 * 32,
1024 * 256,
1024 * 1024,
1024 * 1024 * 4,
1024 * 1024 * 16,
1024 * 1024 * 64,
1024 * 1024 * 256,
1024 * 1024 * 1024]).
-define(TIME_BUCKETS,
[timer:minutes(1) div 1000,
timer:minutes(5) div 1000,
timer:minutes(15) div 1000,
timer:minutes(30) div 1000,
timer:hours(1) div 1000,
timer:hours(2) div 1000,
timer:hours(6) div 1000,
timer:hours(12) div 1000,
timer:hours(24) div 1000]).

@sando38 sando38 added the enhancement New feature or request label Dec 18, 2023
@sando38 sando38 added this to the 1.13.0 milestone Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants