Have you set up you AKS to work with Azure Monitor and Container Insights or another third party monitoring service for Kubernetes such as Kubecost? The answer you seek lies in implementing monitoring for each container and compare their usage in relation to the total cost of your host. To help guide you in this pursuit, here are some resources to get you started. You’d need to provide more information for me to assist you further.
https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-overview
https://www.kubecost.com/pricing
I see your question was updated. Using the monitoring solution of choice, take the total cost of the entire cluster and divide by the cost of the container itself based on how you're billed for the host of your cluster.
For example, let's say I'm charged a total of 1000 this month for my AKS host based on CPU usage or IOPS at a rate of 1 dollar per unit. I have three containers. Using Azure Monitor with Container Insights I see that C1 used 350 units, C2 used only 50 units, and C3 used 600 units.
Therefore, we can say C1 cost 350 dollars of the whole for the cluster and so on. Just replace the numbers used with your own.
Hope this helps!
- Ed