arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get current total CPU/Memory usage in the namespace

hashtag
Get current total CPU/Memory usage in the namespace

post

Get the current total requested, limit, and usage of CPU (Core) and Memory (Byte) for the pods deployed in the namespace.

Body
Responses
chevron-right
200

OK

*/*
post
/v1/monitoring-ns/metric/total-resource/result/current
200

OK

POST /v1/monitoring-ns/metric/total-resource/result/current HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "clusters": [
    {
      "name": "thingcluster"
    }
  ]
}
{
  "thingcluster": {
    "cocktail-system": {
      "limit_cpu": 0,
      "limit_memory": 4760535040,
      "request_cpu": 4215,
      "request_memory": 1293547520,
      "usage_cpu": 1298,
      "usage_memory": 8463978496
    },
    "limit_cpu": 57900,
    "limit_memory": 87966199808,
    "request_cpu": 26665,
    "request_memory": 37130840064,
    "usage_cpu": 2439,
    "usage_memory": 51958136832
  }
}