zlacker

[parent] [thread] 2 comments
1. 9dev+(OP)[view] [source] 2024-03-08 21:06:52
I case you’re stuck with Celery for a while: I was hit with this same problem, and solved it by adding a sidecar HTTP server thread to the Python workers that would expose metrics written by the workers into a multithreaded registry. This has been working amazingly well in production for over two years now, and makes it really straightforward to get custom metrics out of a distributed Celery app.
replies(1): >>kamika+XL
2. kamika+XL[view] [source] 2024-03-09 04:55:28
>>9dev+(OP)
Any chance you could share more specifics about your solution?
replies(1): >>9dev+411
◧◩
3. 9dev+411[view] [source] [discussion] 2024-03-09 08:51:20
>>kamika+XL
Here you go: https://stackoverflow.com/questions/75652326/celery-spawn-si...

Plus some adjacent discussion on GitHub: https://github.com/prometheus/client_python/issues/902

Hope that helps!

[go to top]