Hi,
We use a bespoke cluster autoscaler to scale our mesos clusters up and down. We do it based on total and available(free) cpus/mem in the cluster. Does k8s expose this? I read the docs, but could find any information pertaining to it.
I am looking to fetch these metrics in a script, so metrics-server seems like a better option.
My understanding is that metrics-server uses ‘stats/summary’ API of kubelet to get metrics. Looks like Kubelet API provides metrics pertaining to the actual cpu usage. I am looking for the cpu/mem reservation information. Am I missing something?
container_spec_cpu_shares from kubelet cadvisor can be used to get how much allocated and kube_node_status_allocatable_cpu_cores from kube-state-metrics provides how much available in the cluster.
@sagarp We also presented our work at Kubecon Copenhagen about complete monitoring suite and dashboards we build that are really crucial for day to day operation. You can check out the video and some links to dashboard source
Federated Prometheus Monitoring at Scale - Nandhakumar Venkatachalam & LungChih Tung ( https://www.youtube.com/watch?v=Zm43VM7nKdU )