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 <[email protected]>
https://ipv6.mcbig.cz https://keybase.io/mcbig twitter: mcbig_cz
pgpXkd2IFGWvX.pgp
Description: Digitální podpis OpenPGP
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
