Skip to content

Instantly share code, notes, and snippets.

@aiwantaozi
aiwantaozi / metric.md
Last active December 20, 2018 23:42
Cluster/Node/Workload/Pod Metric

CPU

CPULoad1

"cpu_load1"
represent the 1 min cpu load averages each core.
Scope: cluster, node
expr: 
    cluster: sum(node_load1) / count(node_cpu{mode="system"})
    node: sum(node_load1{instance=~"$node.*"}) / count(node_cpu{mode="system", instance=~"$node.*"})

CPULoad5