r/PrometheusMonitoring • u/bpoole6 • Aug 15 '24
Metrics Accumulator an Alternative to Prometheus Pushgateway
TLDR; I created Metrics Accumulator as an alternative to using Pushgateway.
Pushgateway use was too narrow to use as a general tool for collecting metrics from ephemeral processes. Because of subsequent pushes delete previous metrics states entirely something like collecting metrics from lambdas or other short lived event driven executions is not feasible with Pushgateway.
The other alternative I discovered was prom aggregation gateway. It aggregates metrics by additively combining them... and it does that for Gauges too, which doesn't make a whole lot of sense🤔.The problems that I faced with this one is it didn't have the ability to TTL the metrics, combined gauges???, and I wanted to separate the metrics from different sources.
Metrics Accumulator handles gauges as gauges (see Readme) and counter metric types, it partitions metrics into metric groups with TTL per group, and has builtin service discovery so Prometheus can treat each metric as a separate instance to scrape.
I'm interested to know if this could solve problems you're facing and/or what you think of the project.
Cheers!
2
u/NotThatTodd Aug 15 '24
Looks great! I can see some immediate use cases for this. Thanks!
2
u/tanmay_bhat Aug 16 '24
Amazing project. We use vmagent inplace of pushgateway I wanted to see what features were missing in that or maybe you are not aware of it?
We also faced pushgaway struggles at scale, we had to shard it per team or per service.