Hi All,
I am calculating the percentage CPU usage with below expression -
sum(rate(container_cpu_usage_seconds_total{container_name="abc"}[5m])) by (
container_name) /
sum(container_spec_cpu_quota{container_name="abc"}/container_spec_cpu_period
{container_name="abc"}) by (container_name) *100
My goal is to get the actual CPU values so that I can do optimum allocation
in resource requests.
Can someone provide me the Prometheus expression to calculate the CPU usage
for currently running pod. (The goal is to monitor it for month to conclude
on optimum allocation required to save the cost)
*Darshan DeshmukhMobile - 9404611164*
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CAFS_rz4anH9HUiTW4G-BCXobkkvz0UWVvgBFAhm6DaeaYic_Jg%40mail.gmail.com.