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 solution that log_alarm which will check
message like:

        Brutally killing worker 7 (pid: 22)...

Please, have you anybody some better solution, or way, how can i check,
that worker was kill. I try to use signal.signal handler but that not
work.

Thanks a lot.

-- 
Ondřej Tůma <mc...@zeropage.cz>
https://ipv6.mcbig.cz     https://keybase.io/mcbig    twitter: mcbig_cz

Attachment: pgpXkd2IFGWvX.pgp
Description: Digitální podpis OpenPGP

_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to