Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
04af424b
Commit
04af424b
authored
Jul 10, 2019
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port EE analytics route
parent
38ff4498
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
config/routes.rb
config/routes.rb
+13
-0
No files found.
config/routes.rb
View file @
04af424b
...
@@ -110,6 +110,12 @@ Rails.application.routes.draw do
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment