diff --git a/prometheus.md b/prometheus.md new file mode 100644 index 0000000..9bf0ebe --- /dev/null +++ b/prometheus.md @@ -0,0 +1,34 @@ +# Prometheus + +## Installtion sur Raspberry Pi 3B+ + +```shell +$ 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 +``` + +```shell +$ sudo systemctl enable prometheus +$ sudo systemctl status prometheus +```