1、准备监控系统负载脚本vim /usr/local/node_exporter/dir_load.sh#!/bin/bash load1=$(uptime | awk '{print $(NF-2)}'| sed 's/,//') load5=$(uptime | awk '{print $(NF-1)}'| sed 's/,//') load15=$(uptime | awk '{print
groups:-name:node_rulesrules:-record:instance:node_cpu:avg_rate5mexpr:100-avg(irate(node_cpu_seconds_total{job="node_prod",mode="idle"}[5m]))by(instance)*100-record:instance:node_cpus:countexpr:countb
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号