Kubernetes cost, showback, waste and savings (Prometheus, OpenCost)
Cluster cost, showback per namespace, requests versus usage, unrequested capacity and savings levers, with node prices from static rates, instance-type prices or OpenCost. From the k8s-cost-waste-alerts Helm chart.
What the cluster costs and where to cut it: monthly cost split into requested and unrequested capacity, cost per namespace for showback, CPU and memory requested above real usage priced per month, a node table with price, capacity type and how much of each node is requested, a table of savings levers (right-sizing, consolidation, spot, commitments, idle volumes and load balancers), plus PersistentVolumeClaims no pod mounts and HorizontalPodAutoscaler limits.
Data it needs. The recording rules of the k8s-cost-waste-alerts Helm chart (costwaste:*), built on kube-state-metrics and cAdvisor. Node prices come from flat rates, an instance-type price list in values, or OpenCost.
Currency. Panels are in US dollars. The chart's own copy of this dashboard uses the currency set in its values.
Getting started
helm repo add oreonit https://oreondev.github.io/helm-charts
helm install cost oreonit/k8s-cost-waste-alerts -n monitoring \
--set prometheusRule.labels.release=kube-prometheus-stack
Needs kube-state-metrics and cAdvisor metrics (kube-prometheus-stack has both). Set node prices in the chart values (flat rates, an instance-type price list, or OpenCost): https://github.com/oreondev/helm-charts/tree/main/charts/k8s-cost-waste-alerts
Maintained by Oreon IT. Issues and pull requests: https://github.com/oreondev/helm-charts
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
| Revision | Description | Created | |
|---|---|---|---|
| Download |
Kubernetes
Monitor your Kubernetes deployment with prebuilt visualizations that allow you to drill down from a high-level cluster overview to pod-specific details in minutes.
Learn more