django-prometheus icon indicating copy to clipboard operation
django-prometheus copied to clipboard

Expose Users count in multiproccess mode

Open macher91 opened this issue 6 years ago • 1 comments

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?

macher91 avatar Apr 04 '18 12:04 macher91

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 ?

geobeau avatar May 23 '18 15:05 geobeau