Suppose you run your 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.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://infosec.exchange/users/ubernostrum/statuses/115578208818240167 on your instance and quote it. (Note that quoting is not supported in Mastodon.)