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
911c0f61
Commit
911c0f61
authored
Jul 23, 2019
by
Aleksei Lipniagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove :livesum from RubySampler metrics
parent
5e102f17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
changelogs/unreleased/64974-remove-livesum-from-ruby-sampler-metrics.yml
...leased/64974-remove-livesum-from-ruby-sampler-metrics.yml
+5
-0
lib/gitlab/metrics/samplers/ruby_sampler.rb
lib/gitlab/metrics/samplers/ruby_sampler.rb
+4
-4
No files found.
changelogs/unreleased/64974-remove-livesum-from-ruby-sampler-metrics.yml
0 → 100644
View file @
911c0f61
---
title
:
Remove :livesum from RubySampler metrics
merge_request
:
31047
author
:
type
:
fixed
lib/gitlab/metrics/samplers/ruby_sampler.rb
View file @
911c0f61
...
...
@@ -30,18 +30,18 @@ module Gitlab
def
init_metrics
metrics
=
{
file_descriptors:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:file
,
:descriptors
),
'File descriptors used'
,
labels
,
:livesum
),
memory_bytes:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:memory
,
:bytes
),
'Memory used'
,
labels
,
:livesum
),
file_descriptors:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:file
,
:descriptors
),
'File descriptors used'
,
labels
),
memory_bytes:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:memory
,
:bytes
),
'Memory used'
,
labels
),
process_cpu_seconds_total:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:process
,
:cpu_seconds_total
),
'Process CPU seconds total'
),
process_max_fds:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:process
,
:max_fds
),
'Process max fds'
),
process_resident_memory_bytes:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:process
,
:resident_memory_bytes
),
'Memory used'
,
labels
,
:livesum
),
process_resident_memory_bytes:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:process
,
:resident_memory_bytes
),
'Memory used'
,
labels
),
process_start_time_seconds:
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:process
,
:start_time_seconds
),
'Process start time seconds'
),
sampler_duration:
::
Gitlab
::
Metrics
.
counter
(
with_prefix
(
:sampler
,
:duration_seconds_total
),
'Sampler time'
,
labels
),
total_time:
::
Gitlab
::
Metrics
.
counter
(
with_prefix
(
:gc
,
:duration_seconds_total
),
'Total GC time'
,
labels
)
}
GC
.
stat
.
keys
.
each
do
|
key
|
metrics
[
key
]
=
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:gc_stat
,
key
),
to_doc_string
(
key
),
labels
,
:livesum
)
metrics
[
key
]
=
::
Gitlab
::
Metrics
.
gauge
(
with_prefix
(
:gc_stat
,
key
),
to_doc_string
(
key
),
labels
)
end
metrics
...
...
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