rycus86/prometheus_flask_exporter

Multiprocess applications metrics running in werkzeug

Velan987 opened this issue · 1 comments

For a multiprocess applications only the metrics which has "flask_" prefix is exposed.
Common metrics like "process_resident_memory_bytes, process_cpu_seconds_total" are not exposed, for single process application these metrics are available.

I am running the application like below
app.run(host='0.0.0.0', port=8080, processes=10, threaded=False)

We've run into this before, and there's an easy-to-miss paragraph about it in the README ( under https://github.com/rycus86/prometheus_flask_exporter#multiprocess-applications )

Please also note, that the Prometheus client library does not collect process level metrics, like memory, CPU and Python GC stats when multiprocessing is enabled. See the #18 issue for some more context and details.