avast / ep-stats

Statistics for Experimentation Platform
MIT License
16 stars 11 forks source link

Make Prometheus work with multiprocess deployments #63

Closed jachymsol closed 9 months ago

jachymsol commented 9 months ago

When starting the app with multiple uvicorn workers, Prometheus needs a folder in which it can store the metrics. This folder needs to be set in the PROMETHEUS_MULTIPROC_DIR environment variable. Best practice is to clear the folder before each start-up of the app.