当前位置:网站首页>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
边栏推荐
- 19_请求表单与文件
- 租户问题。
- Error reporting caused by local warehouse
- 【LeetCode】32、 最长有效括号
- I.MX6UL核心模块使用连载-TF卡读写测试 (五)
- What is JSX?
- Programming basic environment variable setting of in-house SOC
- 还在用==0 null equal 判断空值吗,对isEmpty 和 isBlank有多少了解呢
- Remember a laravel problem script @php artist package:discover handling the post autoload dump event returned with
- Jupiter notebook reported an error: notebook validation failed: non unique cell ID '2a4xx6' detected
猜你喜欢

2. Login - verification code function and saving login status

本地仓库导致的报错

Kaggle registration method to solve the problem of man-machine verification

QT program beautification of the use of style sheets, QT uses pictures as the background and transparency of controls, QT custom button styles

由一个数据增量处理问题看到技术人员的意识差距

Navica tool imports remote MySQL into local MySQL database

prometheus+redis-exporter+grafana 监控redis服务

Acwing 379. hide and seek problem solution (minimum path non repeating point coverage)

1. Mx6ul core module use serialization - view system information (II)

Advantages of composition API
随机推荐
How to install opengauss manually (non om mode)
【2019】【论文笔记】基于超材料可调谐THz宽频吸收——
Activiti workflow gateway
Characteristics and determination of neuraminidase from Clostridium perfringens in Worthington
What is the difference between for... In... And for... Of
DQN Pytorch示例
【LeetCode】32、 最长有效括号
数仓:银行业数仓的分层架构实践
Dest0g3 520 orientation (under update)
1. Mx6ul core module serial USB interface test (VI)
Error reporting caused by local warehouse
17_ Form Data
Monitoring of debezium synchronization debezium
Arm assembly foundation of SOC
Build embedded development environment and FRP penetration under win
Sqlyog data import and export graphic tutorial
Ti AM335X工控模块使用beaglebone(bbb)的Debian系统
I.MX6UL核心模块使用连载-nand flash读写测试 (三)
图解B+树的插入过程
Postman报Json序列化错误