cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kubernetes cluster utilisation dashboard

gurugogi
Guide

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

 

6 REPLIES 6

gurugogi
Guide

gurugogi_0-1727335122954.png

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)

  

 

 

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/

https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monito...

 

Phani Devulapalli

It was helpful, thanks.

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. 

Peter_Youssef_1-1727337183840.png

Peter_Youssef_2-1727337218670.png

Peter_Youssef_3-1727337256775.png

Peter_Youssef_0-1727337127409.png

Peter_Youssef_4-1727337412571.png

If you need to use advanced and specify your query input, you can do it as well

Peter_Youssef_5-1727337511092.png

Regards,

Peter.

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.

Hello @gurugogi 

You can use an alternative solution, and it will fit as well.

  • Go to Metrics and filter by the required metrics as per example below > create a chart > use split and filter by to get the target result.

Peter_Youssef_7-1727338480588.png

Peter_Youssef_6-1727338431564.png

Peter_Youssef_8-1727338537756.png

Peter_Youssef_9-1727338570658.png

Peter_Youssef_10-1727338619505.png

Peter_Youssef_11-1727338714289.png

Regards,

Peter.

Featured Posts