These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I would recommend going over the accepted answer, mainly around the crucial part where you need to pass the time frame that you want to get the CPU usage for by defining the start and end parameters.
start: Timestamp to start metric window. Example: start=1620683817
end: Timestamp to end metric window. Example: end=162070541
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.