From 41d1843f96d38979c350cd862e29bd838bac9750 Mon Sep 17 00:00:00 2001 From: Joshua Lambert Date: Tue, 7 Nov 2017 17:34:34 +0000 Subject: Fix CPU metric --- config/prometheus/additional_metrics.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/prometheus') 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 -- cgit v1.2.3