Prometheus
This commit is contained in:
34
prometheus.md
Normal file
34
prometheus.md
Normal file
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user