metrics-rs / metrics

A metrics ecosystem for Rust.
MIT License
1.08k stars 148 forks source link

Expose way to configure RollingSummary #430

Closed rukai closed 5 months ago

rukai commented 8 months ago

RollingSummary was internally introduced here https://github.com/metrics-rs/metrics/pull/306 But there is currently no way for the user to configure how long data is held onto for high level users of metrics/metrics-exporter-prometheus

tobz commented 8 months ago

Yeah, this is a reasonable request. I would accept a PR adding methods to the builder that allow configuring the bucket width and count.

lilyball commented 5 months ago

It looks like this was already done in https://github.com/metrics-rs/metrics/pull/444

tobz commented 5 months ago

Yep, just awaiting a release of metrics-exporter-prometheus, which should hopefully be doable somewhere between today and the next seven days. I've been queueing up a lot of changes to bundle together.

tobz commented 5 months ago

Released in metrics-exporter-prometheus@v0.14.0.