Prometheus -CPU负载一段时间

发布于 2025-02-11 01:28:35 字数 362 浏览 0 评论 0原文

我试图在过去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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文