I want to build a dashboard for kubernetes, particularly it should show cluster level resource utilisations like
CPU:
1.one tile with total physical CPU cores assigned to a k8s cluster, if possible split by worker nodes.
2.one tile with physical CPU cores used out of total cores assigned to cluster.
3.one tile with % of physical CPU cores assigned as request , split by pods/containers/namespaces.
4:one tile with % of physical CPU cores assigned as limit, split by pods/containers/namespaces.
Memory:
1.one tile with total Memory assigned to a k8s cluster, if possible split by worker nodes.
2.one tile with Memory used out of total memory assigned to cluster.
3.one tile with % of Memory assigned as request , split by pods/containers/namespaces.
4:one tile with % of memory assigned as limit, split by pods/containers/namespaces.
Have you checked the new kubenetes app, it pretty much has all info you are after , you can pick the metrics from there and build a dashboard as per your preference
Simply Go to Data Explorer > and select the metric as per monitoring requirements and apply the required filters and split by and the monitoring insights will be available for you to be pinned to dashboard.
Feel free to review the attached example and customize it as per intended requirements.
Thanks Peter, I have used such metics in my dashboard, just I was thinking from overall cluster point of view.
like total CPU cores Vs assigned cores, like total memory Vs assigned memory.