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.
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.