当前位置:网站首页>Prometheus + process exporter + grafana monitor the resource usage of the process
Prometheus + process exporter + grafana monitor the resource usage of the process
2022-07-26 02:14:00 【Work hard, work hard】
prometheus Configuration file modification
- 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
Deploy process-exporter Check my other articles , This process is not exhaustive .
Reload the configuration file

grafana Configure monitoring

Process monitoring template download
process-exporter Query details
- process cpu utilization
sum(irate(namedprocess_namegroup_cpu_seconds_total{
instance="zunshang"}[5m])) by (groupname) * 100 / 4
namedprocess_namegroup_cpu_seconds_total{instance=“zunshang”}: All processes in the bottler server use cpu Time for (system、user)
irate(namedprocess_namegroup_cpu_seconds_total{instance=“zunshang”}[5m]): 5 Of the two nearest data points of each time series in minutes cpu Usage time rate
sum(irate(namedprocess_namegroup_cpu_seconds_total{instance=“zunshang”}[5m])) by (groupname): Statistics of all processes system And user Use your time With groupname distinguish Process
4 : Express cpu The number of cores sum(irate(node_cpu_seconds_total{instance=“zunshang”}[5m])) About equal to 4
- The number of all threads produced by the server application
sum(namedprocess_namegroup_num_procs{
instance="zunshang"}) by (groupname)
- Process memory usage (PSS)
sum(namedprocess_namegroup_memory_bytes{
instance="zunshang",memtype="proportionalResident"}) by (groupname) / 33020436480 * 100
33020436480 : The maximum memory byte size of the server
proportionalResident: PSS be relative to RSS The shared library memory size is calculated proportionally .N Process sharing , This library pair PSS The contribution of size is only 1/N
- Server process memory usage (VIRT)
sum(namedprocess_namegroup_memory_bytes{
instance="zunshang",memtype="virtual"}) by (groupname) / 33020436480 * 100
边栏推荐
- 由一个数据增量处理问题看到技术人员的意识差距
- [C language brush leetcode] 1462. curriculum IV (m)
- SQL手工盲注、报错注入
- MySQL transaction isolation level
- I.MX6UL核心模块使用连载-触摸屏校准 (九)
- Are you still using ==0 null equal to judge null values? How much do you know about isempty and isblank
- js给页面添加随机像素噪声背景
- I.MX6UL核心模块使用连载-WIFI测试 (八)
- 【LeetCode】32、 最长有效括号
- 我来图书馆小程序一键签到和一键抢位置工具
猜你喜欢

1. Mx6ul core module uses serial can and buzzer test (XI)

1. Mx6ul core module serial use - touch screen calibration (IX)

国标GB28181协议视频平台EasyGBS消息弹框模式优化

I.MX6UL核心模块使用连载-RTC测试 (十二)

Sword finger offer 28. symmetric binary tree

增删改查业务的快速上手

prometheus+blackbox-exporter+grafana 监控服务器端口及url地址

I came to the library applet one click sign in and one click grab location tool
![Web3.0 blog DAPP development practice [2022]](/img/18/f386246ff6ffbd0a42df57c3cd9170.png)
Web3.0 blog DAPP development practice [2022]

商业智能BI全解析,探寻BI本质与发展趋势
随机推荐
Redis cluster construction (based on 6.x)
Error reporting caused by local warehouse
These practical security browser plug-ins improve your efficiency
Build embedded development environment and FRP penetration under win
I came to the library applet check-in process analysis
图解B+树的插入过程
SQL手工盲注、报错注入
A MCU event driven C framework
Redis6.x配置参数详解
vite 本地运行首次进入页面加载慢问题
[C language brush leetcode] 1462. curriculum IV (m)
1. Mx6ul core module serial -iot-6ulx core module brief introduction (I)
Leetcode algorithm 147. insert and sort the linked list
I.MX6UL核心模块使用连载-TF卡读写测试 (五)
Characteristics and determination of neuraminidase from Clostridium perfringens in Worthington
1. Mx6ul core module uses serial EMMC read / write test (IV)
Navica tool imports remote MySQL into local MySQL database
由一个数据增量处理问题看到技术人员的意识差距
SQLyog数据导入导出图文教程
I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)