Get cluster pod CPU usage Top 5 trend (Core)

Get cluster pod CPU usage Top 5 trend (Core)

get

Get the per-minute trend of the CPU usage for the top 5 pods in the cluster with the highest CPU usage.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
200
OK
*/*
get
GET /v1/monitoring-clusters/metric/pod-cpu-top/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Host: 
Accept: */*
200

OK

[
  {
    "metrics": {
      "cluster": "thingcluster",
      "namespace": "cocktail-system",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "samples": [
      0.21448,
      0.18462,
      0.15429
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

Was this helpful?