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
ad55275d
Commit
ad55275d
authored
Nov 19, 2019
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comment explaining nan values
parent
e495db2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
app/assets/javascripts/helpers/monitor_helper.js
app/assets/javascripts/helpers/monitor_helper.js
+1
-0
app/assets/javascripts/monitoring/components/charts/anomaly.vue
...sets/javascripts/monitoring/components/charts/anomaly.vue
+1
-0
No files found.
app/assets/javascripts/helpers/monitor_helper.js
View file @
ad55275d
...
...
@@ -7,6 +7,7 @@
export
const
makeDataSeries
=
(
queryResults
,
defaultConfig
)
=>
queryResults
.
map
(
result
=>
{
// NaN values may disrupt avg., max. & min. calculations in the legend, filter them out
const
data
=
result
.
values
.
filter
(([,
value
])
=>
!
Number
.
isNaN
(
value
));
if
(
!
data
.
length
)
{
return
null
;
...
...
app/assets/javascripts/monitoring/components/charts/anomaly.vue
View file @
ad55275d
...
...
@@ -66,6 +66,7 @@ export default {
const
values
=
query
.
result
[
0
]
?
query
.
result
[
0
].
values
:
[];
return
{
label
:
query
.
label
,
// NaN values may disrupt avg., max. & min. calculations in the legend, filter them out
data
:
values
.
filter
(([,
value
])
=>
!
Number
.
isNaN
(
value
)),
};
});
...
...
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