Kubernetes
Get Kubernetes efficiency
Returns the cost, idle cost and CPU and memory used and peak over requested of the workspace's Kubernetes clusters over a window, per cluster, namespace or workload, largest cost first. It reads the clusters' own rows, never the cloud connection's, and returns at most 500 rows.
Needs a token with viewCosts on the workspace.
query Parameters
workspaceId^wsp_[A-Za-z0-9_-]{2… · requiredstartDateendDatelevelfilterGet Kubernetes efficiency › Responses
Success
leveltruncatedcurrency^[A-Z]{3}$historyFloorReport Kubernetes usage
Accepts one aggregated window from the Costfluent Kubernetes agent, as JSON, gzip-compressed with Content-Encoding: gzip, with the token of the cluster it reports for. A cluster is added in Costfluent before its first report, and its token reports for it alone: another cluster_id, or any token that is not a cluster token, is refused with 403. A schema_version this API does not read, newer than it knows or retired, is answered 422 rather than refused as invalid, so the agent keeps the report and retries it.
Needs an organization token with reportKubernetesUsage.
Report Kubernetes usage › Request Body
schema_versioncluster_idagent_versionagent_instance_idwindow_startwindow_endReport Kubernetes usage › Responses
Accepted
id^k8s_[A-Za-z0-9_-]{2… · requiredcluster_idstatus