Kubernetes

Get Kubernetes cost per pod

The call is used to retrieve kubernetes Pod cost and usage data grouped

get/api/v1/kubernetes/cost-and-usage/pod

Request

  • Base URL
    https://api.umbrellacost.io
  • URL
    https://api.umbrellacost.io/api/v1/kubernetes/cost-and-usage/pod
  • Auth
    none declared. Required headers: Authorization, apikey

Query parameters

startDatestring date required

Start date of the cost and usage data examination

endDatestring

End date of the cost and usage data examination

clusterNamestring

The cluster name that the pod running on. cluster name formatting should be in following format- [CLUSTER_REGION]:[CLUSTER_ACCOUNT_ID]:[CLUSTER_NAME] for example us-east-1:123456789012:prod-cluster

nodeNamestring
podNamestring

pod name formatting should be in following format- [POD_NAMESPACE]:[POD_NAME] for example kube-system:aws-node-k5jgh

Headers

Authorizationstring required
apikeystring required

Response

dataobject

As described below:

groupBystring
usageDatestring
accountIdstring
clusterNamestring
totalCostinteger
totalUsageinteger

Changes

No recorded changes to this operation across all 1 revision of this API.