Get Average Price Per Hour
GET/dashboard/:cluster_type/avg-price-per-hour/:cluster_id
This data provides insights into price efficiency within the EKS cluster by breaking down average costs per vCPU, GiB of memory, and GPU. Unlike overall cluster cost, which only shows total expenditure, these per-unit prices reveal how cost-effectively resources are being utilized. By analyzing price efficiency, we can make better decisions about resource allocation and scaling, ensuring that the cluster is optimized for both performance and cost-effectiveness.
Request
Path Parameters
Type of the cluster (eks, asg)
Query Parameters
Optional list of Instance Types to filter
Optional list of Availability Zones to filter
Default value: 2024-09-25
Start date for the pricing period (YYYY-MM-DD)
Default value: 2024-10-25
End date for the pricing period (YYYY-MM-DD)
Header Parameters
API key for authentication
Responses
- 200
- 422
Successful response with average prices per hour.
- application/json
- Schema
- Example
Schema
any
{
"2024-10-24": {
"avg_price_per_vcpu_hour": 0.03662519549531268,
"avg_price_per_gib_hour": 0.00819988055828237
},
"2024-10-23": {
"avg_price_per_vcpu_hour": 0.024560466408796888,
"avg_price_per_gib_hour": 0.005044624792675774
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}