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
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-06 12:43:12 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-06 12:43:12 +0300
commitbafe3a6d6a12c5407993e338b89ebd2b4b76b03a (patch)
tree9062e032995bb9ded0ec317d192ac6f90a490084 /config/prometheus
parent1d0f0cc0ceb2872f23db37ad396ba2d386c91a7b (diff)
Fix common_metrics.yml
Diffstat (limited to 'config/prometheus')
-rw-r--r--config/prometheus/common_metrics.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/prometheus/common_metrics.yml b/config/prometheus/common_metrics.yml
index ca359d344cd..52023a2e3cb 100644
--- a/config/prometheus/common_metrics.yml
+++ b/config/prometheus/common_metrics.yml
@@ -207,6 +207,7 @@
required_metrics:
- container_cpu_usage_seconds_total
weight: 1
+ queries:
- id: system_metrics_kubernetes_container_core_usage_canary
query_range: 'avg(sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name=~"^%{ci_environment_slug}-canary-(.*)",namespace="%{kube_namespace}"}[15m])) by (job)) without (job) / count(sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name=~"^%{ci_environment_slug}-canary-(.*)",namespace="%{kube_namespace}"}[15m])) by (pod_name))'
label: Pod average