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
b2536f27
Commit
b2536f27
authored
Aug 30, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6d4875bd
79011fab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/sidekiq_middleware/metrics.rb
lib/gitlab/sidekiq_middleware/metrics.rb
+1
-1
spec/lib/gitlab/sidekiq_middleware/metrics_spec.rb
spec/lib/gitlab/sidekiq_middleware/metrics_spec.rb
+1
-1
No files found.
lib/gitlab/sidekiq_middleware/metrics.rb
View file @
b2536f27
...
...
@@ -35,7 +35,7 @@ module Gitlab
def
init_metrics
{
sidekiq_jobs_completion_seconds:
::
Gitlab
::
Metrics
.
histogram
(
:sidekiq_jobs_completion_seconds
,
'Seconds to complete sidekiq job'
,
buckets:
SIDEKIQ_LATENCY_BUCKETS
),
sidekiq_jobs_completion_seconds:
::
Gitlab
::
Metrics
.
histogram
(
:sidekiq_jobs_completion_seconds
,
'Seconds to complete sidekiq job'
,
{},
SIDEKIQ_LATENCY_BUCKETS
),
sidekiq_jobs_failed_total:
::
Gitlab
::
Metrics
.
counter
(
:sidekiq_jobs_failed_total
,
'Sidekiq jobs failed'
),
sidekiq_jobs_retried_total:
::
Gitlab
::
Metrics
.
counter
(
:sidekiq_jobs_retried_total
,
'Sidekiq jobs retried'
),
sidekiq_running_jobs:
::
Gitlab
::
Metrics
.
gauge
(
:sidekiq_running_jobs
,
'Number of Sidekiq jobs running'
,
{},
:livesum
)
...
...
spec/lib/gitlab/sidekiq_middleware/metrics_spec.rb
View file @
b2536f27
...
...
@@ -13,7 +13,7 @@ describe Gitlab::SidekiqMiddleware::Metrics do
let
(
:running_jobs_metric
)
{
double
(
'running jobs metric'
)
}
before
do
allow
(
Gitlab
::
Metrics
).
to
receive
(
:histogram
).
with
(
:sidekiq_jobs_completion_seconds
,
anything
,
anything
).
and_return
(
completion_seconds_metric
)
allow
(
Gitlab
::
Metrics
).
to
receive
(
:histogram
).
with
(
:sidekiq_jobs_completion_seconds
,
anything
,
anything
,
anything
).
and_return
(
completion_seconds_metric
)
allow
(
Gitlab
::
Metrics
).
to
receive
(
:counter
).
with
(
:sidekiq_jobs_failed_total
,
anything
).
and_return
(
failed_total_metric
)
allow
(
Gitlab
::
Metrics
).
to
receive
(
:counter
).
with
(
:sidekiq_jobs_retried_total
,
anything
).
and_return
(
retried_total_metric
)
allow
(
Gitlab
::
Metrics
).
to
receive
(
:gauge
).
with
(
:sidekiq_running_jobs
,
anything
,
{},
:livesum
).
and_return
(
running_jobs_metric
)
...
...
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