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
623a9c48
Commit
623a9c48
authored
Aug 20, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
01947844
0b84ff0e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
6 deletions
+51
-6
GITLAB_SHELL_VERSION
GITLAB_SHELL_VERSION
+1
-1
app/assets/javascripts/monitoring/components/dashboard.vue
app/assets/javascripts/monitoring/components/dashboard.vue
+2
-2
app/assets/stylesheets/framework/badges.scss
app/assets/stylesheets/framework/badges.scss
+1
-1
changelogs/unreleased/62373-badge-counter-very-low-contrast-between-foreground-and-background-c.yml
...very-low-contrast-between-foreground-and-background-c.yml
+6
-0
changelogs/unreleased/an-fix-sidekiq-histogram-buckets.yml
changelogs/unreleased/an-fix-sidekiq-histogram-buckets.yml
+5
-0
changelogs/unreleased/pb-update-gitlab-shell-9-4-0.yml
changelogs/unreleased/pb-update-gitlab-shell-9-4-0.yml
+5
-0
changelogs/unreleased/tr-param-undefined-fix.yml
changelogs/unreleased/tr-param-undefined-fix.yml
+5
-0
lib/gitlab/sidekiq_middleware/metrics.rb
lib/gitlab/sidekiq_middleware/metrics.rb
+5
-1
spec/javascripts/monitoring/dashboard_spec.js
spec/javascripts/monitoring/dashboard_spec.js
+20
-0
spec/lib/gitlab/sidekiq_middleware/metrics_spec.rb
spec/lib/gitlab/sidekiq_middleware/metrics_spec.rb
+1
-1
No files found.
GITLAB_SHELL_VERSION
View file @
623a9c48
9.
3
.0
9.
4
.0
app/assets/javascripts/monitoring/components/dashboard.vue
View file @
623a9c48
...
...
@@ -264,12 +264,12 @@ export default {
showToast
()
{
this
.
$toast
.
show
(
__
(
'
Link copied to clipboard
'
));
},
// TODO: END
generateLink
(
group
,
title
,
yLabel
)
{
const
dashboard
=
this
.
currentDashboard
||
this
.
firstDashboard
.
path
;
const
params
=
{
dashboard
,
group
,
title
,
y_label
:
yLabel
}
;
const
params
=
_
.
pick
({
dashboard
,
group
,
title
,
y_label
:
yLabel
},
value
=>
value
!=
null
)
;
return
mergeUrlParams
(
params
,
window
.
location
.
href
);
},
// TODO: END
hideAddMetricModal
()
{
this
.
$refs
.
addMetricModal
.
hide
();
},
...
...
app/assets/stylesheets/framework/badges.scss
View file @
623a9c48
.badge.badge-pill
{
font-weight
:
$gl-font-weight-normal
;
background-color
:
$badge-bg
;
color
:
$g
l-text-color-secondary
;
color
:
$g
ray-800
;
vertical-align
:
baseline
;
}
changelogs/unreleased/62373-badge-counter-very-low-contrast-between-foreground-and-background-c.yml
0 → 100644
View file @
623a9c48
---
title
:
'
Resolve
Badge
counter:
Very
low
contrast
between
foreground
and
background
colors'
merge_request
:
31922
author
:
type
:
other
changelogs/unreleased/an-fix-sidekiq-histogram-buckets.yml
0 → 100644
View file @
623a9c48
---
title
:
Allow latency measurements of sidekiq jobs taking > 2.5s
merge_request
:
32001
author
:
type
:
fixed
changelogs/unreleased/pb-update-gitlab-shell-9-4-0.yml
0 → 100644
View file @
623a9c48
---
title
:
Update to GitLab Shell v9.4.0
merge_request
:
32009
author
:
type
:
other
changelogs/unreleased/tr-param-undefined-fix.yml
0 → 100644
View file @
623a9c48
---
title
:
Fix for embedded metrics undefined params
merge_request
:
31975
author
:
type
:
fixed
lib/gitlab/sidekiq_middleware/metrics.rb
View file @
623a9c48
...
...
@@ -3,6 +3,10 @@
module
Gitlab
module
SidekiqMiddleware
class
Metrics
# SIDEKIQ_LATENCY_BUCKETS are latency histogram buckets better suited to Sidekiq
# timeframes than the DEFAULT_BUCKET definition. Defined in seconds.
SIDEKIQ_LATENCY_BUCKETS
=
[
0.1
,
0.25
,
0.5
,
1
,
2.5
,
5
,
10
,
60
,
300
,
600
].
freeze
def
initialize
@metrics
=
init_metrics
end
...
...
@@ -31,7 +35,7 @@ module Gitlab
def
init_metrics
{
sidekiq_jobs_completion_seconds:
::
Gitlab
::
Metrics
.
histogram
(
:sidekiq_jobs_completion_seconds
,
'Seconds to complete sidekiq job'
),
sidekiq_jobs_completion_seconds:
::
Gitlab
::
Metrics
.
histogram
(
:sidekiq_jobs_completion_seconds
,
'Seconds to complete sidekiq job'
,
buckets:
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/javascripts/monitoring/dashboard_spec.js
View file @
623a9c48
...
...
@@ -414,6 +414,26 @@ describe('Dashboard', () => {
expect
(
clipboardText
()).
toContain
(
`y_label=`
);
});
it
(
'
undefined parameter is stripped
'
,
done
=>
{
wrapper
.
setProps
({
currentDashboard
:
undefined
});
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
clipboardText
()).
not
.
toContain
(
`dashboard=`
);
expect
(
clipboardText
()).
toContain
(
`y_label=`
);
done
();
});
});
it
(
'
null parameter is stripped
'
,
done
=>
{
wrapper
.
setProps
({
currentDashboard
:
null
});
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
clipboardText
()).
not
.
toContain
(
`dashboard=`
);
expect
(
clipboardText
()).
toContain
(
`y_label=`
);
done
();
});
});
it
(
'
creates a toast when clicked
'
,
()
=>
{
spyOn
(
wrapper
.
vm
.
$toast
,
'
show
'
).
and
.
stub
();
...
...
spec/lib/gitlab/sidekiq_middleware/metrics_spec.rb
View file @
623a9c48
...
...
@@ -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
).
and_return
(
completion_seconds_metric
)
allow
(
Gitlab
::
Metrics
).
to
receive
(
:histogram
).
with
(
:sidekiq_jobs_completion_seconds
,
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