Get total CPU/Memory usage of workloads
Was this helpful?
Was this helpful?
Was this helpful?
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"
}
]
}
]
}{
"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
}
}