[uWSGI] on worker exit handler

2018-08-22 Thread Ondrej Tuma
Hi there, i try to create custom metrics for prometheus with official python prometheus_client library. I use uwsgi with gevent and Flask, with more workers. So i need to handle, when worker shut down to call prometheus_client.mark_process_dead(worker_pid) But i can't found another sol

Re: [uWSGI] on worker exit handler

2018-08-23 Thread Ondrej Tuma
i try to found first. Ondra V Wed, 22 Aug 2018 14:34:49 +0200 Ondrej Tuma napsáno: > Hi there, > > i try to create custom metrics for prometheus with official > python prometheus_client library. I use uwsgi with gevent and Flask, > with more workers. > > So i need to handle