Ondrej Tuma
2018-08-22 12:34:49 UTC
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.
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 <***@zeropage.cz>
https://ipv6.mcbig.cz https://keybase.io/mcbig twitter: mcbig_cz
OndÅej Tůma <***@zeropage.cz>
https://ipv6.mcbig.cz https://keybase.io/mcbig twitter: mcbig_cz