赞
踩
prometheus-process-exporter
监控系统架构方案
https://blog.csdn.net/weixin_45801289/article/details/126922395
process exporter 配置项解释
https://www.cnblogs.com/danny-djy/p/11149818.html
sudo apt install prometheus-process-exporter
prometheus-process-exporter_0.4.0+ds-1_amd64.deb
service prometheus-process-exporter status
netstat -anplut|grep alert
systemctl daemon-reload
sudo apt install prometheus-process-exporter
sudo systemctl start prometheus-process-exporter
sudo systemctl enable prometheus-process-exporter
sudo systemctl status prometheus-process-exporter
sudo systemctl restart prometheus-process-exporter
Ubuntu 20.04 部署Prmoetheus+grafana+mysql+mysqld_exporter+node_exporter
https://www.cnblogs.com/yangzp/p/16281547.html
输入导入的模板id 249,数据源选择Prometheus,点击import导入。
展示process exporter监控到信息
vi /etc/default/prometheus-process-exporter
ARGS="-web.listen-address :9256"
这样弄 没有数据
按下面的方法
apt-get install prometheus-process-exporter -y mkdir -p /etc/prometheus-process-exporter cat > /etc/prometheus-process-exporter/prometheus-process-exporter.yaml << EOF process_names: - name: "{{.Comm}}" cmdline: - '.+' EOF systemctl stop prometheus-process-exporter cat > /lib/systemd/system/prometheus-process-exporter.service << EOF [Unit] Description=Prometheus exporter that mines /proc to report on selected processes Documentation=https://github.com/ncabatoff/process-exporter man:prometheus-process-exporter(1) After=network.target [Service] User=prometheus EnvironmentFile=/etc/default/prometheus-process-exporter ExecStart=/usr/bin/prometheus-process-exporter -config.path /etc/prometheus-process-exporter/prometheus-process-exporter.yaml [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl restart prometheus-process-exporter
curl http://localhost:9256/metrics > ccc
http://192.168.99.40:9256/metrics
sudo vi /etc/prometheus/prometheus.yml
- job_name: 'linux-node-process-1'
static_configs:
- targets: ['192.168.99.55:9256']
sudo systemctl restart prometheus
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。