If you set external_url 'http://gitlab.example.com/gitlab' and then curl the local NGINX status location for Rails metrics, you get 404. The rest of the instance is fine. Prometheus, after a related fix, was already scraping the prefixed path. The NGINX stub was still proxying to a path Workhorse would not forward.
This is the story of omnibus-gitlab!10081 , a one-variable template change, and a helper that already knew the right path.
The issue: a prefix the scrape job had, and the stub did not
The issue was omnibus-gitlab#10221 , opened by Jason Plum. When external_url includes a path, Workhorse only serves /-/metrics under that prefix. The NGINX location /rails-metrics template proxied to http://gitlab-workhorse/-/metrics with no relative URL, so Workhorse did not send the request on to Puma, and NGINX returned 404.
omnibus-gitlab!9929 had already fixed the Prometheus scrape job, by introducing Prometheus.rails_metrics_path . The scrape job and the NGINX stub had drifted apart.…