How do you monitor cost per namespace in a shared cluster?
IntermediateScenarioGrafana, Dashboards and Kubernetes Monitoring
Answer
Situation read → Finance wants showback by team.
What I'd do →
- Deploy OpenCost (CNCF) or Kubecost, which combine Prometheus usage data with cloud pricing.
- Allocate by max(requests, usage) per namespace and label (
team). - Build Grafana dashboards showing cost per team and idle cost.
- Flag over-requested workloads: requests much higher than p95 usage.
Why → Visibility drives right-sizing; idle requests are a big part of Kubernetes waste.
Interview tip → Mention "requests drive cost, not usage" in shared clusters.
More on Grafana, Dashboards and Kubernetes Monitoring
Grafana has 900 dashboards and nobody can find anything. How do you clean it up?IntermediateHow do you manage Grafana dashboards as code?IntermediateDesign a service overview dashboard that an on-call engineer can read in 10 seconds.BeginnerYou need to show deploy events on every Grafana graph. How?BeginnerPods are being OOMKilled but the memory graph never reaches the limit. Why?IntermediateHow do you detect CPU throttling hurting latency in Kubernetes?Intermediate