summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-11-22 18:59:35 +0000
committerStan Hu <stanhu@gmail.com>2017-11-22 18:59:35 +0000
commit3193f13b444dc08366ebe2c223fb59ef2862f30b (patch)
tree671d95502827d908b423625059b569bcf69d1a11
parent48b65bb0ef5b7e70229491464bf69d910c27ed63 (diff)
parentbf77f1cd10e424be25ef9b155fc1b2a48d7556c2 (diff)
downloadgitlab-ce-3193f13b444dc08366ebe2c223fb59ef2862f30b.tar.gz
Merge branch 'pawel/disable_prometheus_metrics' into 'master'
Temporarily force disable prometheus metrics See merge request gitlab-org/gitlab-ce!15549
-rw-r--r--changelogs/unreleased/pawel-disable_prometheus_metrics.yml5
-rw-r--r--lib/gitlab/metrics/prometheus.rb6
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