当前位置:网站首页>Prometheus的Recording rules实践
Prometheus的Recording rules实践
2022-08-01 18:14:00 【leboop-L】
如图:


recording_rules.yml内容如下:
groups:
- name: my_first_recording_rule
rules:
- record: node_cpu_total_used_rate
expr: (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配置recording rules文件路径:

可以查看,已经预计算出指标,如图:

边栏推荐
- 粒子滤波 particle filter —从贝叶斯滤波到粒子滤波——Part-I(贝叶斯滤波)
- 亚马逊云科技Build On2022技能提升计划第二季——揭秘出海爆款新物种背后的黑科技
- 深入浅出Flask PIN
- MySQL关系型数据库事务的ACID特性与实现方法
- Go GORM事务实例分析
- Friends who want to use the database anytime, anywhere and as you like, all attention!
- 【Day_09 0427】 另类加法
- WinRAR | Generate multiple installers into one installer
- 关于单应性矩阵的若干思考
- WinRAR | 将多个安装程序生成一个安装程序
猜你喜欢

QT常用全局宏定义

C#/VB.NET: extracted from the PDF document all form

【Error】Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘concat’)

Leetcode74. 搜索二维矩阵

C语言理论--笔试面试基础稳固
Stop using MySQL online DDL

Leetcode74. Search 2D Matrix

opencv如何实现图像倾斜校正

How to build a CMDB driven by consumption scenarios?

Leetcode73. 矩阵置零
随机推荐
Use of message template placeholders
C#/VB.NET:从 PDF 文档中提取所有表格
2022年MySQL最新面试题
直播系统聊天技术(八):vivo直播系统中IM消息模块的架构实践
钳形万用表使用方法,如何测量电压、电流、电阻?
The elder brother of the goldfish RHCA memoirs: CL210 experiment management it network - chapter
极化微波成像概述3
opencv语法Mat类型总结
opencv real-time face detection
以消费场景为驱动的CMDB要怎么建?
Leetcode73. 矩阵置零
Leetcode73. Matrix Zeroing
用VS2013编译带boost库程序时提示 fatal error C1001: 编译器中发生内部错误
【Error】Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘concat’)
分布式消息队列平滑迁移技术实战
深入浅出Flask PIN
面经汇总-社招-6年
行业沙龙第二期丨如何通过供应链数字化业务协同,赋能化工企业降本增效?
What is the implementation principle of Go iota keyword and enumeration type
暑假第二周总结博客