Request Right-Sizing Recommendation API
Container Request Right Sizing Recommendation API
GET
app.kubecost.com/query/savings/requestSizingV2
The container request right sizing recommendation API provides recommendations for container resource requests based on configurable parameters and estimates the savings from implementing those recommendations on a per-container, per-controller level. If the cluster-level resources stay static, then there may not be significant savings from applying Kubecost's recommendations until you reduce your cluster resources. Instead, your idle allocation will increase.
Query Parameters
Name | Type | Description |
---|---|---|
window* | string | Duration of time over which to query. Accepts multiple formats including units of time, relative time units, and unix timestamps. See the API Directory for more a more detailed explanation of valid inputs to |
algorithmCPU | string | The algorithm to be used to calculate CPU recommendations based on historical CPU usage data. Options are |
algorithmRAM | string | Like |
targetCPUUtilization | float in the range (0, 1] | A ratio of headroom on the base recommended CPU request. If the base recommendation is 100 mCPU and this parameter is |
targetRAMUtilization | float in the range (0, 1] | Calculated like |
qCPU | float in the range (0, 1] | The desired quantile to base CPU recommendations on. Only used if |
qRAM | float in the range (0, 1] | Like |
page | int | Establishes starting page of results where |
itemsPerPage | int | Establishes number of items per page. Default is |
filter | string | A filter to reduce the set of workloads for which recommendations will be calculated. |
sortBy | string | Column to sort the response by. Defaults to |
sortByOrder | string | Order to sort by. Defaults to |
includeLabelsAndAnnotations | boolean | Displays all labels and annotations associated with each container request when set to |
Last updated