Skip to main content
Use CostGraph to identify what drives your Kubernetes costs and decide where resources need to change. Follow spend from a cluster to its nodes, namespaces, workloads, and containers. Compare usage with requests before choosing a smaller instance, adjusting a workload, or changing storage. Install the CostGraph Operator, then open Kubernetes Clusters. The list shows healthy clusters by default. Change the status filter to find other clusters, or narrow the list by provider, region, or version.

Find what drives cluster spend

Start with month-to-date cost, the monthly forecast, and the CPU, memory, and storage breakdown. The spend card identifies the cluster contributing most to a cost increase.
  1. Open that cluster and select Nodes. Choose a cost period and use Top contributors to find the nodes with the largest spending changes.
  2. Open Overview and find Namespaces. Compare cost, resource usage, potential cost impact, and recommendation counts over 7 days, 30 days, or month to date.
  3. Select a namespace to open its filtered workload list. Open a workload to inspect the containers behind its cost and recommendations.
The cluster’s Overview and Nodes tabs show whether CostGraph AutoPilot is on for the cluster and what it saved this month. Select View in AutoPilot to see the cluster’s AutoPilot savings.

Compare requested capacity with actual use

On Overview, the CPU and memory charts distinguish what workloads reserve, what they use, and what CostGraph recommends. Use the gap between requests and usage to find capacity that workloads reserve but rarely consume. The chart series describe different parts of that resource footprint. Workload efficiency compares estimated recommended spend with current spend. Use it to prioritize investigation. Lowering a request changes reserved capacity. Reducing the node bill also requires a change to the capacity you run.

GPU cost

Containers are charged for the GPUs they request, at the node’s price per GPU. CPU and memory are charged at the larger of request and usage. A shared GPU is charged as its share of a physical GPU. CostGraph charges a Multi-Instance GPU (MIG) slice by its fraction of the card, so a 1g.5gb slice on an A100 is one seventh. CostGraph charges a time-shared or Multi-Process Service (MPS) GPU as one over the number of clients sharing it. When CostGraph cannot determine the share, it charges the request as a whole GPU. GPU capacity on a node that no container requests is idle cost. See GPUs for how GPU prices are estimated.

Evaluate a workload recommendation

Open Workloads and filter by namespace, resource, action, or urgency. Review both downsizing opportunities and workloads that need more resources.
  1. Select a workload, then open a container.
  2. In Usage, select CPU or memory and a 7-day or 30-day observation window.
  3. Compare P50, P90, P95, and P99 usage with the current request and limit. Higher percentiles help you inspect peaks that an average can hide.
  4. Read the recommendation, its reasons, the proposed request, and estimated monthly savings per replica.
The percentile selector changes the usage value you inspect. It does not recalculate the recommendation. Negative estimated savings indicate an increase in resource cost. When the report lacks enough evidence for a change, read its reason before adjusting the workload. Use Metrics to check CPU throttling and usage trends, then use Details to review the container’s requests, limits, and resource footprint. Refer to How CostGraph works for how cost and usage data feed recommendations.

Investigate resource pressure before resizing

Open a node from Nodes. Its overview combines cost and capacity with a heatmap of CPU, memory, and pressure. Load drivers identify the containers contributing to CPU use. Use these views to distinguish sustained demand from short bursts before reviewing the node’s Recommendations. Compare the current and recommended instance types to evaluate the proposed capacity and cost change. Open the node’s Metrics and select Add node to compare to overlay another node from the same cluster. Compare CPU contention, memory pressure, disk activity, and network traffic over the same time range. For a cluster-wide comparison, return to Overview, select See more beside Cluster metrics, and choose Add cluster to compare. Detailed metrics offer ranges from 5 minutes to 30 days. This helps you check whether a load pattern affects one node or appears across environments.

Compare node pools

Open Node pools to see how the cluster’s nodes are grouped and what each group costs. CostGraph recognises node pools from many autoscalers and clouds. Refer to Supported node pools for the full list. Each pool shows the brand mark of the autoscaler that manages it. The tab starts with the projected monthly cost of all node pools and each pool’s share of it. When the cluster runs more than one autoscaler, it also shows each autoscaler’s share. The pool list shows the following details for each pool:
  • Its instance types and node count.
  • Its mix of spot, on-demand, and reserved capacity.
  • Whether it scales from zero.
  • Its projected monthly cost.
  • Its role for AutoPilot placement.
The projected cost comes from the nodes each pool runs now at their hourly price, for a full month. It is not your billed spend, because cloud bills are not split by node pool. Select a pool to open it. Overview shows the pool’s cost, its capacity, and its CPU, memory, and GPU rates per core-hour, GiB-hour, and GPU-hour. It also shows what AutoPilot saved on the pool. Workloads lists the workloads on the pool and their cost on the pool. It compares each workload’s CPU and memory use with its requests. Metrics charts the pool’s cost, capacity, and AutoPilot savings over time, with markers where AutoPilot acted.

Identify storage changes worth making

Open Persistent volumes to find volumes with sizing recommendations or a cheaper disk type. Select a volume to compare provisioned, observed, and recommended capacity for storage, IOPS, and throughput separately. P99 usage helps you evaluate demand beyond average disk activity. Review the bound claims and Container usage to identify which workloads use the volume. Each container shows its share of disk I/O, P99 throughput, and attributed monthly cost. Use this evidence to investigate an unused mount or excess provisioned performance before changing storage.

Check accelerator use by workload

Open GPUs to inspect the cluster’s accelerators. In a container’s Details, review devices held, sharing, and available utilization and memory readings. Use Usage and Metrics to investigate how the workload uses its GPUs. Available measurements depend on the hardware and collection settings. Enable Accelerator collection to collect GPU metrics, and use GPUs to interpret availability and recommendations.

Use cluster data in your own analysis

The CostGraph API exposes cluster, namespace, node, workload, container, and persistent-volume data under /api/v1/tenant/clusters. Use it to retrieve cost breakdowns, recommendations, and metrics for your own reports or automation. To account for node cost not allocated to containers, use the OpenCost-compatible API. It can return idle cost as a separate allocation or distribute it across workloads.

Next steps

Continue an investigation across resources or review other recommendation sources.

Insights

Investigate findings across clusters and other infrastructure.

Recommendations

Review sizing and savings recommendations across CostGraph.