diff options
author | Paweł Chojnacki <pawel@chojnacki.ws> | 2017-04-07 10:27:15 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-04-07 10:27:15 +0000 |
commit | c3e43c9ba38f8cc0f2fd4a918d052c3977a93421 (patch) | |
tree | 3c5e09e7955663f69573ee9f47e9344011993532 /config | |
parent | 15e87cea3a374e8d929c28f6843170b182fe159a (diff) | |
download | gitlab-ce-c3e43c9ba38f8cc0f2fd4a918d052c3977a93421.tar.gz |
Add /-/readiness /-/liveness and /-/health_metrics endpoints to track application readiness
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 1a851da6203..1da226a3b57 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -39,6 +39,12 @@ Rails.application.routes.draw do # Health check get 'health_check(/:checks)' => 'health_check#index', as: :health_check + scope path: '-', controller: 'health' do + get :liveness + get :readiness + get :metrics + end + # Koding route get 'koding' => 'koding#index' |