其他分享
首页 > 其他分享> > prometheus grafana监控 各个cpu核心利用率

prometheus grafana监控 各个cpu核心利用率

作者:互联网

通过cpu字段筛选

100 - (avg(irate(node_cpu_seconds_total{instance="192.168.64.137:9100",mode="idle",cpu="0"}[2s])) by (instance) *100)
100 - (avg(irate(node_cpu_seconds_total{instance="192.168.64.137:9100",mode="idle",cpu="1"}[2s])) by (instance) *100)
100 - (avg(irate(node_cpu_seconds_total{instance="192.168.64.137:9100",mode="idle",cpu="2"}[2s])) by (instance) *100)
100 - (avg(irate(node_cpu_seconds_total{instance="192.168.64.137:9100",mode="idle",cpu="3"}[2s])) by (instance) *100)

 

 

标签:avg,9100,grafana,instance,prometheus,100,total,cpu
来源: https://blog.51cto.com/u_15077160/2914381