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

Histogram bucket size #3262

Closed
careless6666 opened this issue Feb 28, 2023 · 2 comments
Closed

Histogram bucket size #3262

careless6666 opened this issue Feb 28, 2023 · 2 comments
Assignees
Labels
spec:metrics Related to the specification/metrics directory

Comments

@careless6666
Copy link

Now when we use prometheus and histograms, we set the sizes of the buckets, this is important in terms of the volume of stored metrics. If you look at the histograms created through the meter, it seems that there is no way to influence the size of the buckets at all. Are there any plans to manage them in the future?

prometheus variant

responseTimeSeconds = metricFactory
                .CreateHistogram("my_response_time_seconds", "",
                    buckets: TimeBuckets.Medium,
                    labelNames: new[] {"handler", "protocol", "client_name", "status", "test_type"});

new variant

responseTimeSeconds = meter.CreateHistogram<double>("my_response_time_seconds", "double");
@careless6666 careless6666 added the spec:metrics Related to the specification/metrics directory label Feb 28, 2023
@careless6666 careless6666 changed the title Histogram bucker size Histogram bucket size Feb 28, 2023
@pirgeo
Copy link
Member

pirgeo commented Feb 28, 2023

I think what you are asking here is more or less what the Hints/Advice API will be for. See #3216.

@careless6666
Copy link
Author

careless6666 commented Mar 1, 2023

Yes, that's just what I need

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:metrics Related to the specification/metrics directory
Projects
None yet
Development

No branches or pull requests

3 participants