Commit 9b9af870 authored by Joshua Lambert's avatar Joshua Lambert

Final updates for metrics

parent 15966c30
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
priority: 5 priority: 5
metrics: metrics:
- title: "Memory Usage" - title: "Memory Usage"
y_label: "Memory Usage (MB)" y_label: "Memory Used per Pod"
required_metrics: required_metrics:
- container_memory_usage_bytes - container_memory_usage_bytes
weight: 1 weight: 1
...@@ -149,11 +149,11 @@ ...@@ -149,11 +149,11 @@
label: Average label: Average
unit: MB unit: MB
- title: "CPU Usage" - title: "CPU Usage"
y_label: "Cores" y_label: "Cores per Pod"
required_metrics: required_metrics:
- container_cpu_usage_seconds_total - container_cpu_usage_seconds_total
weight: 1 weight: 1
queries: queries:
- query_range: 'avg(sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name=~"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)",namespace="%{kube_namespace}"}[15m])) by (job)) without (job)' - query_range: 'avg(sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name=~"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)",namespace="%{kube_namespace}"}[15m])) by (job)) without (job) / count(sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name=~"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)",namespace="%{kube_namespace}"}[15m])) by (pod_name))'
label: Average label: Average
unit: "cores" unit: "cores"
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment