trallnag / prometheus-fastapi-instrumentator

Instrument your FastAPI with Prometheus metrics.
ISC License
948 stars 84 forks source link

Setting the `PROMETHEUS_MULTIPROC_DIR` is not mentioned in the docs #286

Open Antsthebul opened 8 months ago

Antsthebul commented 8 months ago

There is no mention of setting this variable in the docs. If an application has multiple workers, then they will notice Counters with strange behaviours. I spent days trying to figure out why this was happening. Maybe I did miss something but simple setting this variable fixed my issue. As mentioned here https://github.com/trallnag/prometheus-fastapi-instrumentator/issues/50