django-prometheus
django-prometheus copied to clipboard
Expose Users count in multiproccess mode
Hi, I'm trying expose user count in multiproccess mode. I trying do it with gauge because number of user can be reduced. To user model signals is connected function to change gauge. Because of multiproccess mode it will change only for one pid metric. There is any solution for this problem?
Multiprocess mode will store metrics files for each PID in a directory then when you will access them it will read everything.
Can you be more precise about your current issue ?