Get workload pod CPU/Memory current quota and usage
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
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"
}
]
}
]
}
]
}{
"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
}
}