当前位置:   article > 正文

玩客云Armbian 23.8.1 Bullseye安装Prometheus&Grafana_armbian_bullseye

armbian_bullseye

Welcome to Armbian 23.8.1 Bullseye with bleeding edge Linux 6.4.13-edge-meson
 

prometheus
参考
Monitoring – How to install Prometheus/Grafana on arm – Raspberry PI/Rock64 | Blogs (mytinydc.com)

 

  1. cd /usr/local/src
  2. wget https://github.com/prometheus/prometheus/releases/download/v2.6.0/prometheus-2.6.0.linux-armv7.tar.gz
  3. tar xfz prometheus-2.6.0.linux-armv7.tar.tar.gz
  4. rm prometheus-2.6.6.0.linux-armv7.tar.gz
  5. cd prometheus-2.6.6.0.linux-armv7/
  6. ln -s prometheus-2.6.6.0.linux-armv7 prometheus
  7. vi prometheus.yml
  8. global:# Default is every 1 minute.
  9. scrape_configs:
  10. # server prometheus listens on TCP/9090
  11. - job_name:'prometheus'.
  12. #metrics_path defaults to "/metrics
  13. #scheme defaults to "http".
  14. static_configs:
  15. - targets: ['localhost:9090']
  16. # Exporters: client servers
  17. - job_name:'nodes'.
  18. scrape_interval: 1m # Override the default global interval for this job
  19. scrape_timeout: 10s # Override the default global timeout for this job
  20. static_configs:
  21. - targets: ['localhost:9100']
  22. nohup ./prometheus &

node_exporter

wget https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-armv7.tar.gz

node_exporter.service

  1. cd /usr/local/src
  2. ln -s node_exporter-0.17.0.linux-armv7/ node_exporter
  3. cat /etc/systemd/system/node_exporter.service
  4. [Unit]
  5. Description=node_export
  6. Documentation=https://github.com/prometheus/node_exporter
  7. [Service]
  8. ExecStart=/usr/local/src/node_exporter/node_exporter
  9. Restart=on-failure
  10. [Install]
  11. WantedBy=multi-user.target
  12. systemctl daemon-reload
  13. systemctl enable node_exporter.service --now

ip:9090/targets

ip:9100

 

ip:3000

admin

默认密码admin,进去先改密码

8919

 

11074

 


 

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号