Get current total CPU/Memory usage in the namespace

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
200
OK
*/*
post
POST /v1/monitoring-ns/metric/total-resource/result/current HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "clusters": [
    {
      "name": "thingcluster"
    }
  ]
}
200

OK

{
  "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
  }
}

Was this helpful?