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:
Pawel Chojnacki 2017-11-22 19:13:47 +01:00 committed by Stan Hu
parent 4ebe69600f
commit bf77f1cd10
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
title: Force disable Prometheus metrics
merge_request:
author:
type: fixed

View file

@ -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