Skip to content

Clean up stale Prometheus metrics in before_exec unicorn hook

Stan Hu requested to merge sh-update-unicorn-rb-example into master

Issuing a SIGUSR2 to a unicorn involves a dance where new workers are spun up before the old ones are shut down. To ensure Prometheus .db files aren't deleted after the new workers are shut down, we need to clean these files up before the unicorn process is run.

Relates to omnibus-gitlab!2582 (merged)

Merge request reports