diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-23 02:37:55 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-24 01:33:00 +0300 |
commit | 9884c0f4a0ea634fe08235ef0a0c7f997f19a782 (patch) | |
tree | 9c4a25555e52d6c4497176b683ba8e38c725c19c | |
parent | cdcbeaccbec09fefe81b7b90badacf5308751ce9 (diff) |
Reenable prometheus metrics
-rw-r--r-- | lib/gitlab/metrics/prometheus.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/metrics/prometheus.rb b/lib/gitlab/metrics/prometheus.rb index 4f165d12a94..09103b4ca2d 100644 --- a/lib/gitlab/metrics/prometheus.rb +++ b/lib/gitlab/metrics/prometheus.rb @@ -17,9 +17,9 @@ module Gitlab end def prometheus_metrics_enabled? - # force disable prometheus_metrics until - # https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/11 is ready - false + return @prometheus_metrics_enabled if defined?(@prometheus_metrics_enabled) + + @prometheus_metrics_enabled = prometheus_metrics_enabled_unmemoized end def registry |