summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJoshua Lambert <joshua@gitlab.com>2017-11-07 17:34:34 +0000
committerJoshua Lambert <joshua@gitlab.com>2017-11-12 12:27:25 -0500
commit41d1843f96d38979c350cd862e29bd838bac9750 (patch)
treecd081a6d4dd9b0b475b7481401bc381a17e6b457 /config
parentab9acf1a5519763a6f871cd5eb68d60fe9b25760 (diff)
downloadgitlab-ce-41d1843f96d38979c350cd862e29bd838bac9750.tar.gz
Fix CPU metric
Diffstat (limited to 'config')
-rw-r--r--config/prometheus/additional_metrics.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/prometheus/additional_metrics.yml b/config/prometheus/additional_metrics.yml
index 44a67dad843..e2635d492cd 100644
--- a/config/prometheus/additional_metrics.yml
+++ b/config/prometheus/additional_metrics.yml
@@ -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