summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-01-22 12:47:16 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-01-29 15:13:05 +0100
commit1c403459ca1537fe105bdf18e31cc8f70d2ec2ed (patch)
tree482aebc25a142a2f60e2f962db18c948e896af2f /lib
parent67d4946347d3784cc2bf3f12cad3b6fb2a6f09ff (diff)
downloadgitlab-ce-1c403459ca1537fe105bdf18e31cc8f70d2ec2ed.tar.gz
Add missing feature gate for cpu metrics
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/metrics/influx_db.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/influx_db.rb b/lib/gitlab/metrics/influx_db.rb
index 1fbe030681e..3789787d796 100644
--- a/lib/gitlab/metrics/influx_db.rb
+++ b/lib/gitlab/metrics/influx_db.rb
@@ -121,7 +121,7 @@ module Gitlab
docstring "Measure #{name}"
base_labels Transaction::BASE_LABELS
buckets EXECUTION_MEASUREMENT_BUCKETS
- # with_feature "prometheus_metrics_measure_#{name}_cpu_duration"
+ with_feature "prometheus_metrics_measure_#{name}_cpu_duration"
end
cpu_duration_seconds.observe(trans.labels, cpu_time)