Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJoshua Lambert <joshua@gitlab.com>2017-11-07 20:34:34 +0300
committerJoshua Lambert <joshua@gitlab.com>2017-11-12 20:27:25 +0300
commit41d1843f96d38979c350cd862e29bd838bac9750 (patch)
treecd081a6d4dd9b0b475b7481401bc381a17e6b457 /config
parentab9acf1a5519763a6f871cd5eb68d60fe9b25760 (diff)
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