Preserve InfluxDB data in monitoring stack
This commit is contained in:
@@ -26,6 +26,8 @@ Vor dem Deploy muessen diese Host-Dateien existieren:
|
||||
|
||||
Alle Dateien mit Rechten `600` anlegen. Werte niemals ins Git schreiben.
|
||||
|
||||
`monitoring-influxdb3-core` uebernimmt bewusst `/mnt/user/appdata/influxdb3/data` und `/mnt/user/appdata/influxdb3/plugins` vom bisherigen Grafana/Influx-Stack, damit Home-Assistant-/Ecowitt-Historie und Token-Katalog erhalten bleiben.
|
||||
|
||||
## Stack Environment
|
||||
|
||||
Default ist sicher lokal:
|
||||
@@ -44,8 +46,8 @@ INFLUXDB_BIND_IP=192.168.178.58
|
||||
|
||||
1. Secrets anlegen.
|
||||
2. Alten `ops/loki`-Stack stoppen, wenn `monitoring-loki` und `monitoring-promtail` live gehen.
|
||||
3. Alten `ops/grafana-influxdb`-Stack stoppen, wenn `monitoring-influxdb3-core` und `monitoring-grafana` live getestet sind.
|
||||
4. `monitoring` via Komodo deployen.
|
||||
3. Alten `ops/grafana-influxdb`-Stack stoppen, bevor `monitoring-influxdb3-core` den LAN-Port `192.168.178.58:8181` uebernimmt.
|
||||
4. `monitoring` via Komodo deployen und `INFLUXDB_BIND_IP=192.168.178.58` erst setzen, wenn der Altcontainer den Port freigegeben hat.
|
||||
5. Optionales Dashboard-Bootstrap-Profil einmalig ausfuehren.
|
||||
6. Home Assistant Writer gegen `http://192.168.178.58:8181/` pruefen; `401 Unauthorized` ohne Token ist erwartbar.
|
||||
|
||||
|
||||
@@ -269,8 +269,8 @@ services:
|
||||
- --plugin-dir=/var/lib/influxdb3/plugins
|
||||
- --admin-token-file=/run/secrets/influxdb3_admin_token
|
||||
volumes:
|
||||
- influxdb3_data:/var/lib/influxdb3/data
|
||||
- influxdb3_plugins:/var/lib/influxdb3/plugins
|
||||
- /mnt/user/appdata/influxdb3/data:/var/lib/influxdb3/data
|
||||
- /mnt/user/appdata/influxdb3/plugins:/var/lib/influxdb3/plugins
|
||||
secrets:
|
||||
- influxdb3_admin_token
|
||||
networks:
|
||||
@@ -293,8 +293,6 @@ volumes:
|
||||
loki_data:
|
||||
promtail_positions:
|
||||
grafana_data:
|
||||
influxdb3_data:
|
||||
influxdb3_plugins:
|
||||
|
||||
secrets:
|
||||
monitoring_grafana_admin_password:
|
||||
|
||||
Reference in New Issue
Block a user