Interview Prep/Monitoring & Observability/Grafana, Dashboards and Kubernetes Monitoring

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 →

  1. Deploy OpenCost (CNCF) or Kubecost, which combine Prometheus usage data with cloud pricing.
  2. Allocate by max(requests, usage) per namespace and label (team).
  3. Build Grafana dashboards showing cost per team and idle cost.
  4. 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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana, Dashboards and Kubernetes Monitoring