Port EE analytics route
This commit is contained in:
parent
38ff44980e
commit
04af424bab
|
@ -110,6 +110,12 @@ Rails.application.routes.draw do
|
||||||
draw :jira_connect
|
draw :jira_connect
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Gitlab.ee do
|
||||||
|
constraints(::Constraints::FeatureConstrainer.new(:analytics)) do
|
||||||
|
draw :analytics
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if ENV['GITLAB_CHAOS_SECRET'] || Rails.env.development?
|
if ENV['GITLAB_CHAOS_SECRET'] || Rails.env.development?
|
||||||
resource :chaos, only: [] do
|
resource :chaos, only: [] do
|
||||||
get :leakmem
|
get :leakmem
|
||||||
|
@ -119,6 +125,13 @@ Rails.application.routes.draw do
|
||||||
get :kill
|
get :kill
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ENV['GITLAB_ENABLE_CHAOS_ENDPOINTS']
|
||||||
|
get '/chaos/leakmem' => 'chaos#leakmem'
|
||||||
|
get '/chaos/cpuspin' => 'chaos#cpuspin'
|
||||||
|
get '/chaos/sleep' => 'chaos#sleep'
|
||||||
|
get '/chaos/kill' => 'chaos#kill'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
concern :clusterable do
|
concern :clusterable do
|
||||||
|
|
Loading…
Reference in New Issue