Support resetting of Prometheus metrics between test runs
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
Showing
... | ... | @@ -297,7 +297,7 @@ group :metrics do |
gem 'influxdb', '~> 0.2', require: false | ||
# Prometheus | ||
gem 'prometheus-client-mmap', '~> 0.9.1' | ||
gem 'prometheus-client-mmap', '~> 0.9.2' | ||
gem 'raindrops', '~> 0.18' | ||
end | ||
... | ... |
spec/lib/gitlab/metrics/prometheus_spec.rb
0 → 100644
Please
register
or
sign in
to comment