当前位置:网站首页>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) ) * 100prometheus.yml configuration recording rules file path:

You can view, the indicators have been pre-calculated, as shown in the figure:

边栏推荐
- The elder brother of the goldfish RHCA memoirs: CL210 experiment management it network - chapter
- SQL function TO_DATE (2)
- 将ENS域名转化为音乐需要几步?
- 想随时、随地、随心使用数据库的朋友们,全体注意!
- Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
- Topology Parts Disassembly 3D Visualization Solution
- B011 - 51-based multifunctional fingerprint smart lock
- B001 - 基于STM32的智能生态鱼缸
- EpiSci | Deep Reinforcement Learning for SoCs: Myth and Reality
- 【Error】Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘concat’)
猜你喜欢
随机推荐
Industry Salon Phase II丨How to enable chemical companies to reduce costs and increase efficiency through supply chain digital business collaboration?
Clip-on multimeter use method, how to measure the voltage, current, resistance?
【Day_10 0428】井字棋
C语言理论--笔试面试基础稳固
B011 - 基于51的多功能指纹智能锁
How opencv implements image skew correction
How to build a CMDB driven by consumption scenarios?
CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) 题解
金鱼哥RHCA回忆录:CL210管理OPENSTACK网络--网络配置选项
QT_事件类
【翻译】CNCF培养的OpenMetrics成为一个孵化项目
MySQL 45 讲 | 09 普通索引和唯一索引,应该怎么选择?
以消费场景为驱动的CMDB要怎么建?
食品安全 | 新鲜食品vs速食食品,哪一种是你的菜?
MySQL Lock wait timeout exceeded; try restarting transaction 锁等待
打开微信客服
用VS2013编译带boost库程序时提示 fatal error C1001: 编译器中发生内部错误
Map传值
暑假第二周总结博客
【LeetCode】Day109-最长回文串








