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.
This commit is contained in:
parent
4ebe69600f
commit
bf77f1cd10
2 changed files with 8 additions and 3 deletions
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Force disable Prometheus metrics
|
||||
merge_request:
|
||||
author:
|
||||
type: fixed
|
|
@ -17,9 +17,9 @@ module Gitlab
|
|||
end
|
||||
|
||||
def prometheus_metrics_enabled?
|
||||
return @prometheus_metrics_enabled if defined?(@prometheus_metrics_enabled)
|
||||
|
||||
@prometheus_metrics_enabled = prometheus_metrics_enabled_unmemoized
|
||||
# force disable prometheus_metrics until
|
||||
# https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/11 is ready
|
||||
false
|
||||
end
|
||||
|
||||
def registry
|
||||
|
|
Loading…
Reference in a new issue