diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-22 19:13:47 +0100 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-11-22 10:57:02 -0800 |
commit | bf77f1cd10e424be25ef9b155fc1b2a48d7556c2 (patch) | |
tree | 506191ab61305f879931adfc2b64ea1d49da123b | |
parent | 4ebe69600fd7ae9da6fb419d76dd5267d9c3b8ca (diff) | |
download | gitlab-ce-bf77f1cd10e424be25ef9b155fc1b2a48d7556c2.tar.gz |
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.
-rw-r--r-- | changelogs/unreleased/pawel-disable_prometheus_metrics.yml | 5 | ||||
-rw-r--r-- | lib/gitlab/metrics/prometheus.rb | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/changelogs/unreleased/pawel-disable_prometheus_metrics.yml b/changelogs/unreleased/pawel-disable_prometheus_metrics.yml new file mode 100644 index 00000000000..74d83256603 --- /dev/null +++ b/changelogs/unreleased/pawel-disable_prometheus_metrics.yml @@ -0,0 +1,5 @@ +--- +title: Force disable Prometheus metrics +merge_request: +author: +type: fixed 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 |