Hi guys,
It will be great if someone can help me on the above question.
Appreciate your assistance, thanks.
On Thursday, October 15, 2020 at 2:52:56 PM UTC-7 Snehal Yeole wrote:
> Hello Team,
>
> I am new to K8S and Prometheus.
>
> I have a question.
> How can I get the *cluster-wide capacity(Nodegroup)* for both CPU and
> Memory resources instead of individual node capacity?
>
> I found something similar for cluster-wide CPU allocation(requests) and
> real utilization(usage):
>
> cluster:cpu_allocation:percent =
>
> sum(kube_pod_container_resource_requests_cpu_cores) /
> sum(kube_node_status_capacity_cpu_cores) * 100
>
>
> cluster:node_cpu_use:percent =
>
> sum(rate(node_cpu{mode!="idle"}[5m])) / sum(machine_cpu_cores) * 100
>
> Any help is highly appreciated.
>
> Thanks,
> Snehal
>
>
--
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/47528087-425c-4091-a0bd-576ca57290fen%40googlegroups.com.