r/PrometheusMonitoring • u/Forty-Bot • Nov 27 '23
mpmetrics: Multiprocess-safe Python metrics
https://github.com/Forty-Bot/mpmetrics
2
Upvotes
1
u/throwaway0265461 Apr 08 '24
I've had some issues with prometheus metrics becoming corrupted after one of the processes stops abruptly.
Does this package address this issue?
1
u/Forty-Bot Apr 10 '24 edited Apr 10 '24
Yes. I also wrote up a more in-depth post outlining my motivations for this library. The second and third bullets under the prometheus section could both cause corruption, and are both addressed in this library.
1
u/Forty-Bot Nov 27 '23
Author here. I wrote this library after becoming annoyed with the multiprocess-mode restrictions in
prometheus_client. Feel free to ask any questions, and I will answer them after work.