当前位置:网站首页>prometheus+process-exporter+grafana 监控进程的资源使用
prometheus+process-exporter+grafana 监控进程的资源使用
2022-07-26 02:09:00 【努力,奋斗啊】
prometheus 配置文件修改
- job_name: "process_exporter"
static_configs:
- targets: ["guojing:9256","zunshang:9256","guanggao:9256","dingdan:9256","luodiyezhu:9256","luodiyebei:9256"]
relabel_configs:
- source_labels: [ "__address__" ]
regex: "(.*):(.*)"
target_label: "instance"
replacement: $1
部署process-exporter 可查我的其他文章,此过程不累述。
重新加载配置文件

grafana 配置监控

process-exporter 查询详解
- 进程cpu利用率
sum(irate(namedprocess_namegroup_cpu_seconds_total{
instance="zunshang"}[5m])) by (groupname) * 100 / 4
namedprocess_namegroup_cpu_seconds_total{instance=“zunshang”}: 樽商服务器中所有进程使用cpu的时间(system、user)
irate(namedprocess_namegroup_cpu_seconds_total{instance=“zunshang”}[5m]): 5分钟内每个时间序列的两个最近数据点的 cpu 使用时间速率
sum(irate(namedprocess_namegroup_cpu_seconds_total{instance=“zunshang”}[5m])) by (groupname):统计所有进程的system与user使用时间 以 groupname 区别开 即进程
4 :表示cpu的核心数量 sum(irate(node_cpu_seconds_total{instance=“zunshang”}[5m]))约等于 4
- 服务器应用程序产生的所有线程数量
sum(namedprocess_namegroup_num_procs{
instance="zunshang"}) by (groupname)
- 进程内存使用率(PSS)
sum(namedprocess_namegroup_memory_bytes{
instance="zunshang",memtype="proportionalResident"}) by (groupname) / 33020436480 * 100
33020436480 : 该服务器最大内存字节大小
proportionalResident: PSS相对于RSS计算共享库内存大小是按比例的。N个进程共享,该库对PSS大小的贡献只有1/N
- 服务器进程内存使用率(VIRT)
sum(namedprocess_namegroup_memory_bytes{
instance="zunshang",memtype="virtual"}) by (groupname) / 33020436480 * 100
边栏推荐
- [leetcode] 32. Longest valid bracket
- Worthington产气荚膜梭菌神经氨酸酶的特征及测定
- I.MX6UL核心模块使用连载-WIFI测试 (八)
- QT program beautification of the use of style sheets, QT uses pictures as the background and transparency of controls, QT custom button styles
- Ggplot2 learning summary
- Make and makefile summary I
- TI AM335x工控模块网络跟文件系统NFS的实现
- Niuke net question brushing training (I)
- Web3.0 blog DAPP development practice [2022]
- Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
猜你喜欢

1. Mx6ul core module use serial -rs485 test (x)

Postman reported JSON serialization error

I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)

1. Mx6ul core module serial -iot-6ulx core module brief introduction (I)

CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"

C# 迭代器的实现

1. Mx6ul core module use serial TF card read / write test (V)

# Dest0g3 520迎新赛(更新中)
![[leetcode] 32. Longest valid bracket](/img/5e/45bb0b1ca3d9e429c6c5cf5c4c93ae.png)
[leetcode] 32. Longest valid bracket

1. Mx6ul core module serial use - touch screen calibration (IX)
随机推荐
SQLyog数据导入导出图文教程
G2. passable paths (hard version) (tree diameter + LCA)
National standard gb28181 protocol video platform easygbs message pop-up mode optimization
[Android development IOS series] Language: swift vs kotlin
[2021] [paper notes] biological effects of cell membrane under infrared and THz - effect is a phenomenon, action is a mechanism - the benefits of THz to medicine
19_请求表单与文件
一款可插拔的AM335X工控模块板载wifi模块
2022.7.25-----leetcode.919
Product thinking drives the construction of R & D management tools
The import and Export button of Damon database table is gray, and the DMP file cannot be imported
Redis集群搭建(基于6.x)
Characteristics and determination of neuraminidase from Clostridium perfringens in Worthington
1. Mx6ul core module serial WiFi test (VIII)
[C language brush leetcode] 443. Compressed string (m)
17_表单数据
A MCU event driven C framework
i. Mx6ull snvs power domain GPIO status hold verification
What is the difference between for... In... And for... Of
A pluggable am335x industrial control module onboard WiFi module
1205 Lock wait timeout exceeded; try restarting transaction处理