summaryrefslogtreecommitdiff
path: root/config/prometheus
diff options
context:
space:
mode:
authorJoshua Lambert <joshua@gitlab.com>2017-11-07 17:29:39 +0000
committerJoshua Lambert <joshua@gitlab.com>2017-11-12 12:27:25 -0500
commitab9acf1a5519763a6f871cd5eb68d60fe9b25760 (patch)
treec11fd5f370badbe06de71e6534466ef637120db5 /config/prometheus
parentbc58f625c4a964212fd991982417cb5b561b0c99 (diff)
downloadgitlab-ce-ab9acf1a5519763a6f871cd5eb68d60fe9b25760.tar.gz
Fix to use variable
Diffstat (limited to 'config/prometheus')
-rw-r--r--config/prometheus/additional_metrics.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/prometheus/additional_metrics.yml b/config/prometheus/additional_metrics.yml
index 073948a965a..44a67dad843 100644
--- a/config/prometheus/additional_metrics.yml
+++ b/config/prometheus/additional_metrics.yml
@@ -145,7 +145,7 @@
- container_memory_usage_bytes
weight: 1
queries:
- - query_range: '(sum(avg(container_memory_usage_bytes{container_name!="POD",environment="production"}) without (job))) / count(avg(container_memory_usage_bytes{container_name!="POD",environment="production"}) without (job)) /1024/1024'
+ - query_range: '(sum(avg(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}"}) without (job))) / count(avg(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}"}) without (job)) /1024/1024'
label: Average
unit: MB
- title: "CPU Utilization"