Get total CPU/Memory usage of workloads
Get the current total requested, limited, and used CPU (cores)/Memory (bytes) for the workload.
Body
Responses
200
OK
*/*
post
POST /v1/monitoring-workloads/metric/resource/result/current HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"clusters": [
{
"name": "thingcluster",
"namespaces": [
{
"name": "cocktail-system"
}
]
}
]
}
200
OK
{
"thingcluster": {
"cocktail-system": {
"cocktail-api-cmdb": {
"limit_cpu": 1000,
"limit_memory": 2147483648,
"request_cpu": 500,
"request_memory": 1073741824,
"usage_cpu": 4,
"usage_memory": 1679163392
},
"limit_cpu": 23300,
"limit_memory": 37694210048,
"request_cpu": 9400,
"request_memory": 16131293184,
"usage_cpu": 211,
"usage_memory": 7336022016
},
"limit_cpu": 23300,
"limit_memory": 37694210048,
"request_cpu": 9400,
"request_memory": 16131293184,
"usage_cpu": 211,
"usage_memory": 7336022016
}
}
Was this helpful?