简体   繁体   English

如何使用Prometheus显示群集的总计CPU,RAM,磁盘I / O使用情况?

[英]How to show aggregated CPU, RAM, Disk I/O usage of a cluster using Prometheus?

I have 3 servers. 我有3台服务器。 I am using Prometheus with Node exporter and for visualizing Prometheus data I am using Grafana. 我正在使用带有节点导出器的Prometheus,并且使用Grafana来可视化Prometheus数据。 The Node Exporter Full (1860) dashboard can only shows CPU, RAM, Disk I/O usages for each server individually. Node Exporter Full(1860)仪表板只能分别显示每个服务器的CPU,RAM,磁盘I / O使用情况。 I want to get overall usages, for example, I want to get the whole cluster's (sarver1 + sarver2 + sarver3) aggregated CPU, RAM, and Disk I/O usages. 我想要获得总体使用情况,例如,我想要获得整个集群的(sarver1 + sarver2 + sarver3)聚合的CPU,RAM和磁盘I / O使用情况。 What queries should I use to get the total cluster resources utilization? 我应该使用哪些查询来获取群集资源的总利用率?

Suppose you have the following query to get the CPU usage: 假设您具有以下查询来获取CPU使用率:

100 - (avg(irate(node_cpu_seconds_total{instance="server1",mode="idle"}[5m])) * 100)

To get the overall of several servers you need to change the query to the following: 要获得几台服务器的总体信息,您需要将查询更改为以下内容:

100 - (avg(irate(node_cpu_seconds_total{instance=~"server1|server2|server3",mode="idle"}[5m])) * 100)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 prometheus 测量 CPU 使用率百分比? - How do I measure percent CPU usage using prometheus? 如何使用 Prometheus 监控所有存储类的持久卷的磁盘使用情况? - How to monitor disk usage of persistent volumes of all storageclasses using Prometheus? 如何使用 Prometheus 和 collectd 导出器在 grafana 中绘制 CPU 使用情况? - How would I graph cpu usage in grafana using Prometheus and the collectd exporter? 使用 prometheus 计算 k8s 集群 cpu/内存使用情况 - count k8s cluster cpu/memory usage with prometheus 如何计算 Prometheus Postgres 导出器中的 cpu 使用率? - How to calculate cpu usage in Prometheus Postgres exporter? 如何在普罗米修斯中以字节为单位获取 pod 的磁盘 I/O 读写 - How to get a pod's disk I/O read write in bytes in prometheus 启用超线程时如何在 GRAFANA 中获取 CPU 的聚合使用情况 - How To Get the Aggregated Usage of CPU in GRAFANA when hyperthreading is enabled 如何在Kubernetes中使用Prometheus获得pod的(milli)核心CPU使用率? - How do I get a pod's (milli)core CPU usage with Prometheus in Kubernetes? 如何在Mac上使用Prometheus监视nodejs cpu和内存使用情况? - How to use Prometheus to monitor nodejs cpu and memory usage on Mac? 如何获取 prometheus 中节点/pod 的 cpu 和 memory 使用情况? - How to get cpu and memory usage of nodes/pods in prometheus?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM