Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gitlab-org
gitlab-exporter
Commits
a186797d
Commit
a186797d
authored
Oct 04, 2016
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change process name to be a label
parent
b586c215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab_monitor/process.rb
lib/gitlab_monitor/process.rb
+2
-2
No files found.
lib/gitlab_monitor/process.rb
View file @
a186797d
...
...
@@ -85,7 +85,7 @@ module GitLab
value
=
memory
[
field
]
next
unless
value
@metrics
.
add
(
"
#{
@name
.
downcase
}
_memory_bytes"
,
value
,
pid:
pid
,
field:
field
)
@metrics
.
add
(
"
process
_memory_bytes"
,
value
,
name:
@name
.
downcase
,
pid:
pid
,
field:
field
)
end
end
...
...
@@ -97,7 +97,7 @@ module GitLab
stats
=
ProcessStats
.
new
(
pid
)
next
unless
stats
.
valid?
@metrics
.
add
(
"
#{
@name
.
downcase
}
_age_seconds"
,
stats
.
age
,
pid:
pid
)
@metrics
.
add
(
"
process
_age_seconds"
,
stats
.
age
,
name:
@name
.
downcase
,
pid:
pid
)
end
self
...
...
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