Closed adamk9k closed 1 year ago
wait I am confused...
@puma_metrics = MetricsContainer.new
Doesn't MetricsContainer by @sosedoff solve this problem? It is already implemented.
MetricsContainer uses a default expiry of 60s, i think i forgot to include the usage of the puma metrics ttl constant in the PR, but i do have this addressed in the WIP PR #268.
So, yeah, any collector that uses the metrics container should be able to expire old data points.
Thanks, good to know. I'll close this one then.
This cherry-picks an old commit that somehow got removed/overwritten. See related discussion at: https://github.com/discourse/prometheus_exporter/issues/275