Prometheus

This commit is contained in:
2025-11-18 11:44:11 +01:00
parent c06e18b7a5
commit 9de5ff22fb
2 changed files with 37 additions and 6 deletions

View File

@@ -1,6 +1,40 @@
# Prometheus
## Installtion sur Raspberry Pi 3B+
## Debian 13
```shell
useradd --system --no-create-home --user-group --shell /usr/sbin/nologin prometheus
wget https://github.com/prometheus/prometheus/releases/download/v3.7.3/prometheus-3.7.3.linux-amd64.tar.gz
tar xvf prometheus-*.tar.gz
```
Déplacer les binaires
```shell
mv prometheus-*/prometheus /usr/local/bin/
mv prometheus-*/promtool /usr/local/bin/
chown prometheus:prometheus /usr/local/bin/prometheus
chown prometheus:prometheus /usr/local/bin/promtool
```
Créer le dossier de configuration
```shell
mkdir /etc/prometheus
mkdir /etc/prometheus/consoles
mkdir /etc/prometheus/console_libraries
mv prometheus-*/prometheus.yml /etc/prometheus
chown -R prometheus:prometheus /etc/prometheus
```
Créer le dossier pour les données
```shell
mkdir /var/lib/prometheus
chown -R prometheus:prometheus /var/lib/prometheus
```
## Raspberry Pi 3B+
```shell
wget https://github.com/prometheus/prometheus/releases/download/v3.7.3/prometheus-3.7.3.linux-armv7.tar.gz