rate() rate(v range-vector) calculates the per-second average rate of increase of the time series in the range vector. rate()函数计算某个时间序列范围内的每秒平均增长率. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for.…
常用查询: https://songjiayang.gitbooks.io/prometheus/content/exporter/nodeexporter_query.html group by 操作 sum/avg/...(子表达式) by (用于分组的字段1, 用于分组的字段2...) 或 sum/avg/... by (用于分组的字段1, 用于分组的字段2...) (子表达式) 例如 CPU 使用率 100 - (avg by (instance) (irate(node_cpu{ins…