802 B
802 B
Prometheus
Installtion sur Raspberry Pi 3B+
$ wget https://github.com/prometheus/prometheus/releases/download/v3.7.3/prometheus-3.7.3.linux-armv7.tar.gz
$ tar xfz prometheus-3.7.3.linux-armv7.tar.gz
$ mv prometheus-3.7.3.linux-armv7 prometheus
$ rm prometheus-3.7.3.linux-armv7.tar.gz
$ sudo nano /etc/systemd/system/prometheus.service
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=iut
Restart=on-failure
ExecStart=/home/iut/prometheus/prometheus \
--config.file=/home/iut/prometheus/prometheus.yml \
--storage.tsdb.path=/home/iut/prometheus/data
[Install]
WantedBy=multi-user.target
$ sudo systemctl enable prometheus
$ sudo systemctl status prometheus