rycus86 / prometheus_flask_exporter

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

How to clean PROMETHEUS_ MULTIPROC_ #160

Open suzumiyashiyu opened 1 year ago

suzumiyashiyu commented 1 year ago

I started multiple processes in the production environment over time 'PROMETHEUS MULTIPROC ‘ There will be more and more files under dir. How can I establish cleaning rules and the volume of responses returned by the 'metrics' endpoint will eventually exceed the connection time. Any help would be greatly appreciated. Any help would be greatly appreciated.

rycus86 commented 1 year ago

I'd recommend asking in the https://github.com/prometheus/client_python repo, as it's a feature of the prometheus client library, not this Flask integration library. Interested in the answer though!

suzumiyashiyu commented 1 year ago

Thank you for your help