Skip to content

Commit

Permalink
CONVENTIONS: Update CPU query sum_irate
Browse files Browse the repository at this point in the history
  • Loading branch information
wking committed Dec 15, 2021
1 parent 2913529 commit e9ca29f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONVENTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ for all containers in the `openshift-monitoring` namespace:
# CPU request / usage of the SDN container
scalar(
max(kube_pod_container_resource_requests{namespace="openshift-sdn", container="sdn", resource="cpu"}) /
max(max_over_time(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace="openshift-sdn", container="sdn"}[120m]))) *
max(max_over_time(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace="openshift-sdn", container="sdn"}[120m]))) *
# CPU usage of each container in the openshift-monitoring namespace
max by (pod, container) (node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace="openshift-monitoring"})
max by (pod, container) (node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace="openshift-monitoring"})
```

> Please note that pods which run on control-plane nodes must use the etcd container as their baseline.
Expand Down

0 comments on commit e9ca29f

Please sign in to comment.