diff options
author | 2021-09-03 22:35:21 +0100 | |
---|---|---|
committer | 2021-09-03 22:35:21 +0100 | |
commit | 700cc67a9aee27c903f3d55f72c113a643219a5d (patch) | |
tree | e04c852e434e5d6ca1754a090293bdadca655eb7 /gunicorn.conf.py | |
parent | Add note on BUILDING_DOCKER (diff) |
Add gunicorn.conf.py with Prometheus specific settings
Diffstat (limited to 'gunicorn.conf.py')
-rw-r--r-- | gunicorn.conf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gunicorn.conf.py b/gunicorn.conf.py new file mode 100644 index 00000000..c60b64eb --- /dev/null +++ b/gunicorn.conf.py @@ -0,0 +1,5 @@ +# Code taken from https://github.com/prometheus/client_python#multiprocess-mode-eg-gunicorn +from prometheus_client import multiprocess + +def child_exit(server, worker): + multiprocess.mark_process_dead(worker.pid) |