#13 Health-Endpoint /health für Docker & Monitoring #13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ziel
Einen einfachen HTTP-Endpunkt
GET /healthbereitstellen, der den aktuellen Systemzustand zurückgibt. Wird für den Docker-Healthcheck und für externes Monitoring (Uptime Kuma, Grafana, …) benötigt.Response
HTTP-Status
200wenn der Bot läuft,503wenn die Meshtastic-Verbindung getrennt ist.Aufgaben
GET /healthinwebserver.pyhinzufügen (kein Auth erforderlich)status,version(aus config),meshtastic(connected/disconnected),uptime_smeshtastic == "disconnected"docker-compose.yml(aus #12) auf diesen Endpunkt anpassenAkzeptanzkriterium
curl http://localhost:8081/health→ JSON mit Status 200 (Bot verbunden) bzw. 503 (getrennt).