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