To analyze resource usage and performance characteristics of running containers you can use cAdvisor. Is is built-in into kubelet and is already running an all your k8s nodes so you don't need to install it.
It's metrics are exposed using prometheus format, so they can be scraped by prometheus.
You can also check out the prometheus helm charts that can deploy a whole stack for you.
Additionally, you may want to learn promethus query language or search for already made grafana dashboards that display this metrics to you and check out how they query.
Also check out this blog post: managing-your-costs-on-kubernetes
If you are interested in paid solutions checkout the kubecost (I'm not affiliated, just found it and thought you might find it usefull).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…