Get workload pod CPU/Memory current usage

Get workload pod CPU/Memory current usage

get

Get the current CPU (Core) and Memory (Byte) usage of pods created by the workload.

Query parameters
clusterIdsstringRequired
namespacesstringRequired
workloadIdsstringRequired
Responses
200
OK
*/*
get
GET /v1/monitoring-workloads/metric/pod-usage/result/current?clusterIds=text&namespaces=text&workloadIds=text HTTP/1.1
Host: 
Accept: */*
200

OK

[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "usage-cpu",
      "namespace": "cocktail-system",
      "node": "apps-gpu-v100",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "timestamp": 1688004480,
    "value": 0.004003636393767266
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "usage-memory",
      "namespace": "cocktail-system",
      "node": "apps-gpu-v100",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "timestamp": 1688004480,
    "value": 1673150464
  }
]

Was this helpful?