After configuring VPS health4
This commit is contained in:
parent
a9e5693867
commit
2dac0d0103
@ -514,6 +514,10 @@ services:
|
||||
image: prom/prometheus:v2.55.1
|
||||
container_name: prediqo_prometheus
|
||||
restart: unless-stopped
|
||||
# Justified exception: image USER=nobody but Docker named volumes are root-owned
|
||||
# on first create → process exits 1 (permission denied) in a restart loop.
|
||||
# Running as root here only writes TSDB data; no ports published.
|
||||
user: root
|
||||
command:
|
||||
- --config.file=/etc/prometheus/prometheus.yml
|
||||
- --storage.tsdb.path=/prometheus
|
||||
|
||||
@ -59,6 +59,13 @@ sudo docker exec crypto_wallet_api node -e "fetch('http://prometheus:9090/-/heal
|
||||
sudo ss -tlnp | grep -E '9090|9100|8080' || echo "OK: ports monitoring non exposés"
|
||||
```
|
||||
|
||||
Si `prediqo_prometheus` est en `Restarting`, regarder les logs (`permission denied` sur `/prometheus` = volume). Le service tourne en `user: root` pour écrire le volume ; sinon :
|
||||
|
||||
```bash
|
||||
sudo docker run --rm -v games-project_prometheus_data:/prometheus busybox chown -R 65534:65534 /prometheus
|
||||
sudo npm run monitoring:up
|
||||
```
|
||||
|
||||
## Variables d’environnement
|
||||
|
||||
| Variable | Défaut | Rôle |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user