Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
starsliao committed Oct 6, 2020
1 parent ce17280 commit 96ad543
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion linux_proc_monit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,17 @@ vi prometheus.yml
yum install python3-devel
pip3 install psutil prometheus_client pyyaml
mkdir /opt/monit
wegt
wegt https://raw.githubusercontent.com/starsliao/Prometheus/master/linux_proc_monit/linux_proc.py
```
3. 增加需要监控的进程
```
# 获取进程PID
ps -ef|grep {进程名}
# 增加进程到监控列表(执行后会把进程信息采集到监控进程的列表文件linux_proc.yaml)
/opt/monit/linux_proc.py {需要监控进程的PID}
```
- linux_proc.yaml文件说明
```

0 comments on commit 96ad543

Please sign in to comment.