Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-05-23 17:23:43 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 20:45:58 +0300
commit770f07cd5c68075bb261f4b6139c92b2ac9309c0 (patch)
treea62d6a11602734a88db1b7f5682ddfed2e9e9b99 /app/controllers/metrics_controller.rb
parent394e962e52efdff36e3fae974ea51e9e2883f382 (diff)
Make login_counter instance variable instead of class one.
+ remove unecessarey require + fix small formatiing issues
Diffstat (limited to 'app/controllers/metrics_controller.rb')
-rw-r--r--app/controllers/metrics_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/metrics_controller.rb b/app/controllers/metrics_controller.rb
index 7191a66fe46..9bcd6f96b34 100644
--- a/app/controllers/metrics_controller.rb
+++ b/app/controllers/metrics_controller.rb
@@ -1,7 +1,9 @@
class MetricsController < ActionController::Base
+ include RequiresHealthToken
+
protect_from_forgery with: :exception
+
before_action :validate_prometheus_metrics
- include RequiresHealthToken
def metrics
response = "#{metrics_service.health_metrics_text}\n#{metrics_service.prometheus_metrics_text}"