Commit bf77f1cd authored by Pawel Chojnacki's avatar Pawel Chojnacki Committed by Stan Hu

Force disable Prometheus metrics

Until https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/11
is ready, Prometheus metrics will not work and cause issues such as #40457.
parent 4ebe6960
---
title: Force disable Prometheus metrics
merge_request:
author:
type: fixed
...@@ -17,9 +17,9 @@ module Gitlab ...@@ -17,9 +17,9 @@ module Gitlab
end end
def prometheus_metrics_enabled? def prometheus_metrics_enabled?
return @prometheus_metrics_enabled if defined?(@prometheus_metrics_enabled) # force disable prometheus_metrics until
# https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/11 is ready
@prometheus_metrics_enabled = prometheus_metrics_enabled_unmemoized false
end end
def registry def registry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment