summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-11-22 19:13:47 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2017-11-22 19:16:53 +0100
commitf421d9d3ff3b47659b7e4703b138bc5ca04128ee (patch)
tree0bbf5ee6832e3b3243b6cd6cb943a8e10f65df97
parent4ebe69600fd7ae9da6fb419d76dd5267d9c3b8ca (diff)
downloadgitlab-ce-pawel/disable_prometheus_metrics.tar.gz
force disable prometheus_metrics untilpawel/disable_prometheus_metrics
https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/11 is ready
-rw-r--r--lib/gitlab/metrics/prometheus.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/metrics/prometheus.rb b/lib/gitlab/metrics/prometheus.rb
index 09103b4ca2d..4f165d12a94 100644
--- a/lib/gitlab/metrics/prometheus.rb
+++ b/lib/gitlab/metrics/prometheus.rb
@@ -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