Suppose you run your #Python web app with gunicorn. And for metrics, you run the Python Prometheus client in multiprocess mode, since you have multiple worker processes. And you set PROMETHEUS_MULTIPROC_DIR the way the docs tell you to.
Now, what's your favorite way to implement the other thing the docs tell you to do?
> This directory must be wiped between process/Gunicorn runs (before startup is recommended).
So. Do you wipe it only when gunicorn itself boots? Do you wipe it on every worker process start? Periodically via cron-type job? Something else?
Genuine question. Asking for a friend, and the friend happens to be me.