Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
4857cfe5f948
Commit
41d1843f
authored
Nov 07, 2017
by
Joshua Lambert
Browse files
Fix CPU metric
parent
6255371d1835
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/prometheus/additional_metrics.yml
View file @
4857cfe5
...
...
@@ -154,8 +154,8 @@
-
container_cpu_usage_seconds_total
weight
:
1
queries
:
-
query_range
:
'
avg(sum
(rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}"}[2m]))
*
100)
without
(job)'
-
query_range
:
'
sum(avg
(rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}"}[2m]))
without
(job)
)
*
100
'
label
:
CPU
unit
:
"
%"
series
:
-
label
:
cpu
-
label
:
cpu
\ No newline at end of file
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