26 Sep 2024 08:18 AM - last edited on 04 Oct 2024 06:48 AM by MaciejNeumann
Hi All,
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.
Please guide.
Thanks,
Guru Gogi
Solved! Go to Solution.
26 Sep 2024 08:20 AM
I was referring to this dashboard it has deprecated metrics like
builtin:cloud.kubernetes.cluster.cores:avg:splitBy():sum:auto:sort(value(sum,descending)):limit(20)
builtin:cloud.kubernetes.cluster.cpuAvailable:avg:splitBy():sum:auto:sort(value(sum,descending)):limit(20)
builtin:cloud.kubernetes.cluster.memory:avg:splitBy():sum:auto:sort(value(sum,descending)):limit(20)
builtin:cloud.kubernetes.cluster.memoryAvailable:avg:splitBy():sum:auto:sort(value(sum,descending)):limit(20)
26 Sep 2024 08:25 AM
Hi @gurugogi
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
https://www.dynatrace.com/hub/detail/kubernetes-1/
03 Oct 2024 11:38 AM
It was helpful, thanks.
26 Sep 2024 09:00 AM
Hi @gurugogi
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.
If you need to use advanced and specify your query input, you can do it as well
Regards,
Peter.
03 Oct 2024 11:41 AM
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.
26 Sep 2024 09:19 AM
Hello @gurugogi
You can use an alternative solution, and it will fit as well.
Regards,
Peter.