Prometheus -CPU负载一段时间
我试图在过去60天的平均水平下找到服务器的CPU负载。
我想定义服务器,如未经充分的情况:
- 如果在此期间使用使用率低于10%,
- 则如果用法低于50%并且差异较低,
我认为可以计算 max_over_time ,并检查是否是否用法不到10%:
max_over_time(node_load15{instance="ServerOne",job="events_prometheus"}[60d])
但是我不确定这是否会给我带来正确的结果,而且,在这里没有考虑方差。.
您如何使用Prometheus获取这些数据?
I'm trying to find the CPU load of my servers, on a 15m average for the last 60 days.
And I would like to define a server, as under-utilized:
- If usage is below 10% during this period
- If usage is below 50% and variance is low
I thought maybe calculate the max_over_time, and check if usage is less than 10% :
max_over_time(node_load15{instance="ServerOne",job="events_prometheus"}[60d])
But I'm not sure if this is getting me the correct results, and also, the variance is not taken into account here..
How would you get this data using Prometheus?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论