Commit bf393a17 authored by ale's avatar ale

Precompute service cpu usage (from cgroups)

parent a621ec88
Pipeline #3393 passed with stage
in 5 minutes and 2 seconds
......@@ -39,3 +39,9 @@ groups:
expr: sum(float_service:ok_by_host) by (float_service)
- record: float_service:ok:ratio
expr: float_service:ok / float_service:presence
# Aggregate service CPU usage as reported by cgroups.
- record: cpu_usage:rate1m
expr: rate(cgroups_cpu_usage[1m])
- record: service:cpu_usage:rate1m
expr: sum(cpu_usage:rate1m) by (host,service)
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