aboutsummaryrefslogtreecommitdiffstats
path: root/gunicorn.conf.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-09-03 22:35:21 +0100
committerGravatar Joe Banks <[email protected]>2021-09-03 22:35:21 +0100
commit700cc67a9aee27c903f3d55f72c113a643219a5d (patch)
treee04c852e434e5d6ca1754a090293bdadca655eb7 /gunicorn.conf.py
parentAdd note on BUILDING_DOCKER (diff)
Add gunicorn.conf.py with Prometheus specific settings
Diffstat (limited to 'gunicorn.conf.py')
-rw-r--r--gunicorn.conf.py5
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)