当前位置:网站首页>Prometheus's Recording rules practice
Prometheus's Recording rules practice
2022-08-01 18:20:00 【leboop-L】
Recording rules official document
As shown:
The contents of recording_rules.yml are as follows:
groups:- name: my_first_recording_rulerules:- record: node_cpu_total_used_rateexpr: (1 - sum(increase(node_cpu_seconds_total{mode="idle"}[1m])) by (instance_id) / sum(increase(node_cpu_seconds_total[1m])) by (instance_id) ) * 100
prometheus.yml configuration recording rules file path:
You can view, the indicators have been pre-calculated, as shown in the figure:
边栏推荐
- 暑假第一周总结博客
- 一加OnePlus 10RT出现在Geekbench上 产品发布似乎也已临近
- B011 - 基于51的多功能指纹智能锁
- LeetCode 1374.生成每种字符都是奇数个的字符串
- 483-82(23、239、450、113)
- opencv如何实现图像倾斜校正
- Industry Salon Phase II丨How to enable chemical companies to reduce costs and increase efficiency through supply chain digital business collaboration?
- Live chat system technology (8) : vivo live IM message module architecture practice in the system
- SQL函数 TO_DATE(二)
- QT_QThread线程
猜你喜欢
随机推荐
golang json returns null
B005 – 基于STC8的单片机智能路灯控制系统
odoo+物联网
Leetcode71. 简化路径
一加OnePlus 10RT出现在Geekbench上 产品发布似乎也已临近
Leetcode72. Edit Distance
SQL function TO_DATE (1)
EpiSci|片上系统的深度强化学习:神话与现实
Detailed explanation of DBPack SQL Tracing function and data encryption function
QT_QDialog dialog
【Day_09 0427】 另类加法
Map by value
【Day_08 0426】两种排序方法
用VS2013编译带boost库程序时提示 fatal error C1001: 编译器中发生内部错误
Golang协程调度器scheduler怎么使用
QT_QDialog 对话框
Stop using MySQL online DDL
【Day_11 0506】求最大连续bit数
opencv syntax Mat type summary
WinRAR | Generate multiple installers into one installer