Files

38 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# HomeAssistant Observability
## Komponenten
- **PostgreSQL** (Zalando Operator) Recorder-Backend für HomeAssistant
- **Grafana** Visualisierung der Recorder-Daten
- **Ingress** (`grafana.kilhaasi-home.de`) Grafana-Zugriff via HTTPS
## Wichtige Hinweise
### Historische Daten
HomeAssistant unterstützt **keine Migration** der Recorder-Historie von SQLite zu PostgreSQL.
Nur neue Daten ab dem Zeitpunkt der Umstellung werden in PostgreSQL gespeichert.
### PostgreSQL-Passwort
Der Zalando-Operator generiert automatisch ein Passwort-Secret:
```
homeassistant-observability.homeassistant-db-credentials.postgresql.acid.zalan.do
```
Key: `password` (base64-kodiert)
### HA-Recorder umstellen
In der HomeAssistant-Konfiguration (`recorder.yaml` oder über UI):
```yaml
recorder:
db_url: postgresql://homeassistant:<PASSWORD>@10.0.0.36:5432/homeassistant
```
Dabei ist `<PASSWORD>` das aus dem Operator-Secret ausgelesene Passwort.
## Deployment-Reihenfolge
1. PostgreSQL CR anwenden → Operator erstellt DB und Secret
2. LoadBalancer-SERVICE prüfen (IP 10.0.0.36)
3. HA-Recorder auf PostgreSQL umstellen
4. Grafana-Pod startet automatisch (liest Passwort aus Secret)