Consolidate monitoring target stack
This commit is contained in:
@@ -90,18 +90,18 @@ Sollzustand:
|
||||
Soll fuer Home Assistant:
|
||||
|
||||
```bash
|
||||
cd /mnt/user/services/stacks/grafana
|
||||
cd /mnt/user/services/stacks/monitoring
|
||||
git fetch --all --prune
|
||||
git reset --hard origin/master
|
||||
docker compose --env-file .env -p grafana -f ops/grafana-influxdb/docker-compose.yml up -d --force-recreate --no-deps influxdb3-core
|
||||
docker compose --env-file .env -p monitoring -f monitoring/docker-compose.yml up -d --force-recreate --no-deps influxdb3-core
|
||||
```
|
||||
|
||||
Danach pruefen:
|
||||
|
||||
```bash
|
||||
docker network ls | grep -E "grafana|influx"
|
||||
docker inspect influxdb3-core --format '{{json .NetworkSettings.Networks}}'
|
||||
docker inspect influxdb3-core --format '{{json .NetworkSettings.Ports}}'
|
||||
docker network ls | grep -E "monitoring|influx"
|
||||
docker inspect monitoring-influxdb3-core --format '{{json .NetworkSettings.Networks}}'
|
||||
docker inspect monitoring-influxdb3-core --format '{{json .NetworkSettings.Ports}}'
|
||||
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep influx
|
||||
ss -ltnp | grep 8181
|
||||
curl -i --max-time 5 http://192.168.178.58:8181/
|
||||
@@ -110,12 +110,12 @@ curl -i --max-time 5 http://192.168.178.58:8181/
|
||||
Erwartung:
|
||||
|
||||
- Komodo Workspace `HEAD` entspricht `origin/master`.
|
||||
- `influxdb3-core` haengt an `grafana_grafana_influx_internal` und `grafana_grafana_influx_lan`.
|
||||
- `monitoring-influxdb3-core` haengt an `monitoring_monitoring_net` und `monitoring_monitoring_influx_lan`.
|
||||
- Docker zeigt `192.168.178.58:8181->8181/tcp`.
|
||||
- `ss` zeigt `docker-proxy` auf `192.168.178.58:8181`.
|
||||
- `curl` bekommt `401 Unauthorized` von InfluxDB.
|
||||
|
||||
Hinweis: Im Compose-File heissen die Netze `grafana_influx_internal` und `grafana_influx_lan`. Durch den Compose-Projektnamen `grafana` werden daraus zur Laufzeit die Docker-Netze `grafana_grafana_influx_internal` und `grafana_grafana_influx_lan`.
|
||||
Hinweis: Im Compose-File heissen die Netze `monitoring_net` und `monitoring_influx_lan`. Durch den Compose-Projektnamen `monitoring` koennen daraus zur Laufzeit Docker-Netze mit Projektpraefix werden.
|
||||
|
||||
## Stop-Regel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user