Disable Prometheus metrics if initialization fails
Previously if the underlying filesystem ran of space, reads and writes to mmap() regions would throw an ugly SIGBUS error and crash. With prometheus-client-mmap v0.10.0, `Prometheus::Client.reinitialize_on_pid_change` will now throw an IOError if initialization fails for some reason. If this happens, we disable internal Prometheus metrics to ensure the system stays up. Closes https://gitlab.com/gitlab-org/gitlab/issues/24425
Showing
... | ... | @@ -327,7 +327,7 @@ group :metrics do |
gem 'influxdb', '~> 0.2', require: false | ||
# Prometheus | ||
gem 'prometheus-client-mmap', '~> 0.9.10' | ||
gem 'prometheus-client-mmap', '~> 0.10.0' | ||
gem 'raindrops', '~> 0.18' | ||
end | ||
... | ... |
Please register or sign in to comment