当前位置:网站首页>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) ) * 100
prometheus.yml配置recording rules文件路径:
可以查看,已经预计算出指标,如图:
边栏推荐
- 顺序表的简单描述及代码的简单实现
- QT基础功能,信号、槽
- QT_QDialog 对话框
- How to make the fixed-point monitoring equipment display the geographic location on the EasyCVR platform GIS electronic map?
- WinRAR | Generate multiple installers into one installer
- C#/VB.NET:从 PDF 文档中提取所有表格
- Tower Defense Shoreline User Agreement
- sql添加索引
- B011 - 51-based multifunctional fingerprint smart lock
- Golang协程调度器scheduler怎么使用
猜你喜欢
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
Topology零部件拆解3D可视化解决方案
MySQL 45 Talk | 09 How to choose common index and unique index?
打开微信客服
MySQL 45 讲 | 09 普通索引和唯一索引,应该怎么选择?
QPalette调色板、框架色彩填充
【Day_11 0506】 最近公共祖先
C language theory--a solid foundation for the written test and interview
Leetcode74. 搜索二维矩阵
QT基础功能,信号、槽
随机推荐
Leetcode71. 简化路径
Summer vacation second week wrap-up blog
Summer vacation first week wrap-up blog
QLineEdit学习与使用
SQL function TO_DATE (1)
【Day_11 0506】求最大连续bit数
Leetcode72. 编辑距离
tooltip 控件
一加OnePlus 10RT出现在Geekbench上 产品发布似乎也已临近
Go iota关键字与枚举类型实现原理是什么
直播系统聊天技术(八):vivo直播系统中IM消息模块的架构实践
Leetcode73. 矩阵置零
QT_QThread线程
史上最全的Redis基础+进阶项目实战总结笔记
食品安全 | 新鲜食品vs速食食品,哪一种是你的菜?
Use of message template placeholders
加州大学|通过图抽象从不同的第三人称视频中进行逆强化学习
SQL的substring_index()用法——MySQL字符串截取
千万级乘客排队系统重构&压测方案总结篇
Leetcode74. Search 2D Matrix