Support resetting of Prometheus metrics between test runs (EE port)
Adding the :prometheus tag to an rspec test will clear out memory-mapped files and reset the registry.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39968
CE port: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18836
Edited by Stan Hu