当前位置:   article > 正文

Ubuntu 20.04 prometheus prometheus-process-exporter_ubuntu卸载promethues

ubuntu卸载promethues

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"
  • 1

这样弄 没有数据
按下面的方法

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

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']

  • 1
  • 2
  • 3
  • 4

sudo systemctl restart prometheus

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/804571
推荐阅读
相关标签
  

闽ICP备14008679号