Kubecost

Product and technical docs

View project on GitHub

This resource covers primary APIs across open source and commercial Kubecost products.

Open source APIs

/costDataModel

Returns unaggregated cost model rate data at the individual container/workload level. Does not include ETL caching layer and therefore optimal for small to medium-sized clusters.

/costDataModelRange

Time-series version of /costDataModel API. Does not include ETL caching layer and therefore optimal for small to medium-sized clusters.

Other APIs (available in Free tier)

/aggregatedCostModel

The aggregated cost model API retrieves data similar to the Kubecost Allocation frontend view, e.g. cost by namespace, label, deployment, service and more. Integrated with Kubecost ETL caching layer and CSV pipeline so it is able to scale to large clusters.

/allocation

Direct API access to the Kubecost ETL pipeline.

/assets

Assets API retrieves the backing cost data broken down by individual assets, e.g. node, disk, etc, and provides various aggregations of this data. Optionally provides the ability to integrate with external cloud assets.

/savings

Exposes a set of APIs for cost optimization insights, e.g. pod-rightsizing and more.