当前位置:网站首页>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# 单元测试
- 2022-07-17
- Programming basic environment variable setting of in-house SOC
- Turn: do the right thing efficiently
- 本地仓库导致的报错
- I.MX6UL核心模块使用连载-CAN、蜂鸣器测试 (十一)
- 【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——
- AttributeError: ‘Document‘ object has no attribute ‘pageCount‘
- 1. Mx6ul core module use serial -rs485 test (x)
- Acwing 379. hide and seek problem solution (minimum path non repeating point coverage)
猜你喜欢

【2021】【论文笔记】6G技术愿景——OTFS调制技术

From a data incremental processing problem, we can see the consciousness gap of technicians

租户问题。

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

Postman报Json序列化错误

vite 本地运行首次进入页面加载慢问题

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

Sqlyog data import and export graphic tutorial

我来图书馆小程序签到流程分析

QT program beautification of the use of style sheets, QT uses pictures as the background and transparency of controls, QT custom button styles
随机推荐
SQLyog数据导入导出图文教程
I.MX6UL核心模块使用连载-触摸屏校准 (九)
Programming basic environment variable setting of in-house SOC
Sword finger offer 28. symmetric binary tree
Navica tool imports remote MySQL into local MySQL database
Be careful about bitmap, the "memory Assassin"~
19_ Request forms and documents
我来图书馆小程序签到流程分析
AttributeError: ‘Document‘ object has no attribute ‘pageCount‘
I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)
Relationship between HTC mobile official solution, s-on/s-off and super CID
LeetCode_动态规划_中等_264.丑数 II
数仓:银行业数仓的分层架构实践
【2021】【论文笔记】红外及THz下的细胞膜生物效应——效应是现象,作用是机理——THz对医学的好处
19_请求表单与文件
What is JSX?
Worthington papain - production of glycopeptides from purified proteoglycans (attached Literature)
Product thinking drives the construction of R & D management tools
Error reporting caused by local warehouse
(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud