玩客云Armbian 23.8.1 Bullseye安装Prometheus&Grafana

发布时间:2024年01月23日

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)

?

cd /usr/local/src

wget https://github.com/prometheus/prometheus/releases/download/v2.6.0/prometheus-2.6.0.linux-armv7.tar.gz

tar xfz prometheus-2.6.0.linux-armv7.tar.tar.gz
rm prometheus-2.6.6.0.linux-armv7.tar.gz
cd prometheus-2.6.6.0.linux-armv7/

ln -s prometheus-2.6.6.0.linux-armv7 prometheus

vi prometheus.yml

global:# Default is every 1 minute.
   scrape_configs:
  # server prometheus listens on TCP/9090
  - job_name:'prometheus'.
         #metrics_path defaults to "/metrics
         #scheme defaults to "http".
      static_configs:
        - targets: ['localhost:9090']

  # Exporters: client servers
  - job_name:'nodes'.
     scrape_interval: 1m # Override the default global interval for this job
     scrape_timeout: 10s # Override the default global timeout for this job
     static_configs:
     - targets: ['localhost:9100']

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

cd /usr/local/src

ln -s node_exporter-0.17.0.linux-armv7/ node_exporter

cat /etc/systemd/system/node_exporter.service
[Unit]
Description=node_export
Documentation=https://github.com/prometheus/node_exporter

[Service]
ExecStart=/usr/local/src/node_exporter/node_exporter
Restart=on-failure
[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl enable node_exporter.service --now

ip:9090/targets

ip:9100

?

ip:3000

admin

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

8919

?

11074

?


?

文章来源:https://blog.csdn.net/qq_24768591/article/details/135768444
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。