Last updated 9 months ago
Get the per-minute trend of CPU usage for pods created by the workload.
OK
대상 메트릭
타임스탬프별 워크로드에 의해 생성된 파드의 CPU 사용량
시간 당 타임스탬프
const response = await fetch('/v1/monitoring-workloads/metric/pod-cpu/result/transition?clusterIds=text&namespaces=text&workloadIds=text&start=text&end=text', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "metrics": { "cluster": "thingcluster", "measure": "usage-cpu", "namespace": "cocktail-system", "node": "apps-gpu-v100", "pod": "cocktail-api-cmdb-0", "workload": "cocktail-api-cmdb" }, "samples": [ 0.0033, 0.00334, 0.00577 ], "timestamps": [ 1687741080, 1687741140, 1687741200 ], "values": null } ]