“Process-exporter”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
(创建页面,内容为“ =down and inst= <pre> wget -c https://github.com/ncabatoff/process-exporter/releases/download/v0.5.0/process-exporter-0.5.0.linux-amd64.tar.gz process-exporter…”)
 
第19行: 第19行:
  
 
./process-exporter -config.path process-name.yaml &
 
./process-exporter -config.path process-name.yaml &
 +
 +
 +
#!/bin/bash
 +
./process-exporter -config.path process-name.yaml & > process-exporter.log
 +
 +
  
 
</pre>
 
</pre>

2020年7月9日 (四) 10:09的版本

down and inst

 wget  -c https://github.com/ncabatoff/process-exporter/releases/download/v0.5.0/process-exporter-0.5.0.linux-amd64.tar.gz


 process-exporter]# pwd
/data/apps/process-exporter
[root@prod-sns-mq01 process-exporter]# cat process-name.yaml 
process_names:
  - name: "{{.Matches}}"
    cmdline:
    - 'redis'

  - name: "{{.Matches}}"
    cmdline:
    - 'nuxt'


./process-exporter -config.path process-name.yaml &


#!/bin/bash
./process-exporter -config.path process-name.yaml & > process-exporter.log