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
2c3207d8
Commit
2c3207d8
authored
Oct 01, 2019
by
Ryan Cobb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move initialization to master start
parent
9d784a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config/initializers/7_prometheus_metrics.rb
config/initializers/7_prometheus_metrics.rb
+2
-2
No files found.
config/initializers/7_prometheus_metrics.rb
View file @
2c3207d8
...
...
@@ -30,8 +30,6 @@ Gitlab::Application.configure do |config|
config
.
middleware
.
insert
(
1
,
Gitlab
::
Metrics
::
RequestsRackMiddleware
)
end
Gitlab
::
Metrics
::
RequestsRackMiddleware
.
initialize_http_request_duration_seconds
Sidekiq
.
configure_server
do
|
config
|
config
.
on
(
:startup
)
do
# webserver metrics are cleaned up in config.ru: `warmup` block
...
...
@@ -56,5 +54,7 @@ if !Rails.env.test? && Gitlab::Metrics.prometheus_metrics_enabled?
elsif
defined?
(
::
Puma
)
Gitlab
::
Metrics
::
Samplers
::
PumaSampler
.
instance
(
Settings
.
monitoring
.
puma_sampler_interval
).
start
end
Gitlab
::
Metrics
::
RequestsRackMiddleware
.
initialize_http_request_duration_seconds
end
end
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