Get workload pod CPU/Memory current quota and usage
Get the current CPU (cores)/Memory (bytes) requested, limited, and used for pods created by the workload.
Body
Responses
200
OK
*/*
post
POST /v1/monitoring-workloads/metric/pod-resource/result/current HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 123
{
"clusters": [
{
"name": "thingcluster",
"namespaces": [
{
"name": "cocktail-system",
"workloads": [
{
"name": "cocktail-api-cmdb"
}
]
}
]
}
]
}
200
OK
{
"thingcluster": {
"cocktail-system": {
"cocktail-api-cmdb": {
"cocktail-api-cmdb-0": {
"limit_cpu": 1000,
"limit_memory": 2147483648,
"request_cpu": 500,
"request_memory": 1073741824,
"usage_cpu": 4,
"usage_memory": 1672011776
},
"limit_cpu": 1000,
"limit_memory": 2147483648,
"request_cpu": 500,
"request_memory": 1073741824,
"usage_cpu": 4,
"usage_memory": 1672011776
},
"limit_cpu": 1000,
"limit_memory": 2147483648,
"request_cpu": 500,
"request_memory": 1073741824,
"usage_cpu": 4,
"usage_memory": 1672011776
},
"limit_cpu": 1000,
"limit_memory": 2147483648,
"request_cpu": 500,
"request_memory": 1073741824,
"usage_cpu": 4,
"usage_memory": 1672011776
}
}
Last updated
Was this helpful?