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
Previsao de Capacidade
Retorna previsoes de capacidade de recursos com base em tendencias historicas — identifica recursos em risco de esgotamento
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."
}
]
}
Filtrar por namespace do Kubernetes
Data inicial no formato RFC3339
Data final no formato RFC3339 (padrão: agora). A janela de análise padrão e de 7 dias.
Campos da Previsao
| Campo | Descrição |
|---|---|
Resource | O recurso Kubernetes (kind, name, namespace) |
Urgency | urgent (esgotamento em menos de 7 dias), plan (7-30 dias), stable (mais de 30 dias) |
Recommendation | Recomendacao gerada automaticamente com base na urgencia |
IsBottleneck | Se este recurso está correlacionado com incidentes ativos |
{
"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."
}
]
}
Autorizações
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Parâmetros de consulta
Filter by namespace.
Start date (RFC3339).
End date (RFC3339).
⌘I