diff options
author | Joshua Lambert <joshua@gitlab.com> | 2017-11-07 17:34:34 +0000 |
---|---|---|
committer | Joshua Lambert <joshua@gitlab.com> | 2017-11-12 12:27:25 -0500 |
commit | 41d1843f96d38979c350cd862e29bd838bac9750 (patch) | |
tree | cd081a6d4dd9b0b475b7481401bc381a17e6b457 /config | |
parent | ab9acf1a5519763a6f871cd5eb68d60fe9b25760 (diff) | |
download | gitlab-ce-41d1843f96d38979c350cd862e29bd838bac9750.tar.gz |
Fix CPU metric
Diffstat (limited to 'config')
-rw-r--r-- | config/prometheus/additional_metrics.yml | 4 |
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 |