Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upprometheus query #1273
Comments
This comment has been minimized.
This comment has been minimized.
|
Sorry I fogot to describe the problems.. |
This comment has been minimized.
This comment has been minimized.
|
Suppose you have that cadvisor metric The metric is a counter just showing you the total number of used seconds. You want a calculate a rate to see what's actually happening: To get a more general overview you'll want to sum away the cpu label and normalize by the number of CPUs you have. A full query could look like this:
|
This comment has been minimized.
This comment has been minimized.
May get the cpu number And
May get the cpu rate increase during 1 min. Container_Used/CPU_Total_Used/Duration may get the result。
and how the cpu total time calculate? Did the cadvisor metrics data privide ? |
mysterytree
closed this
Dec 24, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
mysterytree commentedDec 23, 2015
How to monitor cpu utilization rate.
Can combine the cpu_usage data and some queries to calculate the rate?
@fabxc