summaryrefslogtreecommitdiff
path: root/app/controllers/metrics_controller.rb
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-05-19 17:30:51 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 19:45:58 +0200
commit6726922890fa0becd6e0bcd91ca5d2fa79fcccef (patch)
treed85abc793013762f6bcff707a99a20c1c730e53a /app/controllers/metrics_controller.rb
parent138a5577a9e083933c02675dfa11112693ca7a94 (diff)
downloadgitlab-ce-6726922890fa0becd6e0bcd91ca5d2fa79fcccef.tar.gz
Bring back the token
Diffstat (limited to 'app/controllers/metrics_controller.rb')
-rw-r--r--app/controllers/metrics_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/metrics_controller.rb b/app/controllers/metrics_controller.rb
index a4ba77e235f..f283aeb9db0 100644
--- a/app/controllers/metrics_controller.rb
+++ b/app/controllers/metrics_controller.rb
@@ -2,6 +2,7 @@ require 'prometheus/client/formats/text'
class MetricsController < ActionController::Base
protect_from_forgery with: :exception
+ include RequiresHealthToken
CHECKS = [
Gitlab::HealthChecks::DbCheck,