Capacity Forecast
curl --request GET \
--url http://{host}:{port}/{basePath}/analytics/capacity \
--header 'Authorization: <api-key>'{
"apiVersion": "v1",
"kind": "CapacityForecastList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 2
},
"items": [
{
"Resource": {"Kind": "Deployment", "Name": "payment-service", "Namespace": "production"},
"Urgency": "urgent",
"Recommendation": "Memory exhaustion projected in 5 days. Scale up or optimize memory usage.",
"IsBottleneck": true
},
{
"Resource": {"Kind": "StatefulSet", "Name": "redis-cluster", "Namespace": "data"},
"Urgency": "plan",
"Recommendation": "CPU trend increasing. Plan capacity review within 30 days."
}
]
}
Analytics
Analytics Capacity
Returns resource capacity forecasts based on historical trends — identifies resources at risk of exhaustion
GET
/
analytics
/
capacity
Capacity Forecast
curl --request GET \
--url http://{host}:{port}/{basePath}/analytics/capacity \
--header 'Authorization: <api-key>'{
"apiVersion": "v1",
"kind": "CapacityForecastList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 2
},
"items": [
{
"Resource": {"Kind": "Deployment", "Name": "payment-service", "Namespace": "production"},
"Urgency": "urgent",
"Recommendation": "Memory exhaustion projected in 5 days. Scale up or optimize memory usage.",
"IsBottleneck": true
},
{
"Resource": {"Kind": "StatefulSet", "Name": "redis-cluster", "Namespace": "data"},
"Urgency": "plan",
"Recommendation": "CPU trend increasing. Plan capacity review within 30 days."
}
]
}
Filter by Kubernetes namespace
Start date in RFC3339 format
End date in RFC3339 format (default: now). Analysis window defaults to 7 days.
Forecast Fields
| Field | Description |
|---|---|
Resource | The Kubernetes resource (kind, name, namespace) |
Urgency | urgent (exhaustion in less than 7 days), plan (7-30 days), stable (more than 30 days) |
Recommendation | Auto-generated recommendation based on urgency |
IsBottleneck | Whether this resource correlates with active incidents |
{
"apiVersion": "v1",
"kind": "CapacityForecastList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 2
},
"items": [
{
"Resource": {"Kind": "Deployment", "Name": "payment-service", "Namespace": "production"},
"Urgency": "urgent",
"Recommendation": "Memory exhaustion projected in 5 days. Scale up or optimize memory usage.",
"IsBottleneck": true
},
{
"Resource": {"Kind": "StatefulSet", "Name": "redis-cluster", "Namespace": "data"},
"Urgency": "plan",
"Recommendation": "CPU trend increasing. Plan capacity review within 30 days."
}
]
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Query Parameters
Filter by namespace.
Start date (RFC3339).
End date (RFC3339).
⌘I