Prometheus support

This commit is contained in:
Piero Toffanin 2022-12-26 16:10:43 -05:00
parent 753a33e7c5
commit 9f243fd6be
7 changed files with 120 additions and 7 deletions

4
gunicorn_conf.py Normal file
View file

@ -0,0 +1,4 @@
from prometheus_client import multiprocess
def child_exit(server, worker):
multiprocess.mark_process_dead(worker.pid)