rycus86 / prometheus_flask_exporter

Prometheus exporter for Flask applications
https://pypi.python.org/pypi/prometheus-flask-exporter
MIT License
642 stars 162 forks source link

Support for push using Prometheus remote_write? #142

Open jonnor opened 2 years ago

jonnor commented 2 years ago

Prometheus 2.33 stabilizes the remote_write API. https://promlabs.com/blog/2022/01/30/whats-new-in-prometheus-2-33#remote-write-receiver-marked-stable

While not intended to be a replacement for the pull-based model, it can be very practical from background workers and batch jobs to be able to push, without having to set up a gateway. Especially since the offical pushgateway is very limited, and other options like prom-aggregation-gateway are not activily maintained.

What do you think?

rycus86 commented 2 years ago

Sure, we can look at supporting that once https://github.com/prometheus/client_python does. I haven't checked whether it does already.

jonnor commented 2 years ago

Only mention I have seen so far is https://github.com/prometheus/client_python/issues/817 - which has not been commented on by the maintainers