Health and Monitoring
Check whether the applianceOne container that holds the bot, panel, worker, and database is healthy with its liveness and readiness endpoints, Docker's health check, and the control panel's heartbeatsA service's regular I'm-alive note in the database.
Liveness and Readiness
| Endpoint | Answer |
|---|---|
GET /health | HTTP 200 with "ok" whenever the web service answers |
GET /ready | HTTP 200 when PostgreSQL answers, HTTP 503 when it doesn't, with "ready" either way |
The readiness checkThe /ready endpoint; it only asks if the database is up depends on the database, not on the Discord bot, so a stopped or failed bot leaves the applianceOne container that holds the bot, panel, worker, and database healthy.
Docker Health Check
Docker runs the image's health check every 30 seconds, with a 5-second timeout, a 30-second start period, and 3 retries. It checks the s6-overlay status of the bot, PostgreSQL, the web service, and the workerBackground service that runs schedules and deliveries, then sends GET /health to port 22604 with a 4-second limit. Every check must pass.
docker ps --filter name=discord-stonker-bot
With Compose, run docker compose ps instead. The STATUS column shows the result of the latest check.
Service Supervision
s6-overlay starts the services in order: it prepares PostgreSQL, starts it, runs the database migrations, and then starts the bot, the web service, and the workerBackground service that runs schedules and deliveries.
- PostgreSQL, web service, and workerBackground service that runs schedules and deliveries — If one of them exits with an error, s6 stops the whole applianceOne container that holds the bot, panel, worker, and database, and Docker restarts the container because both
docker runand Compose use thealwaysrestart policy. - Bot — If the bot exits, s6 restarts only the bot, so the control panel stays available.
The image's s6 timing limits keep a normal whole-container shutdown inside Docker's 10-second stop window.
Heartbeats in the Panel
The Services section of the Overview page shows each service's status from its latest heartbeatA service's regular I'm-alive note in the database, such as Ready. Hovering over one shows when that heartbeat arrived.
- Control panel — The web service writes a heartbeatA service's regular I'm-alive note in the database every 15 seconds.
- Scheduled jobs — The workerBackground service that runs schedules and deliveries writes a heartbeatA service's regular I'm-alive note in the database every 30 seconds.
- Bot process — The bot writes one whenever its status changes, and at least every 30 seconds.

A service that hasn't reported yet shows "No heartbeat yet". A service whose last heartbeatA service's regular I'm-alive note in the database is more than 90 seconds old shows Not responding and when that heartbeat arrived. When the bot is set to run and its process goes quiet that long, the bot status changes to Not responding too.
Get Alerts
The Notifications page sends an alert to ntfy, Telegram, email, or another service, so you hear about problems without checking the panel.
- Bot — Bot can't sign in, Bot disconnected after a minute offline, and Bot reconnected.
- Jobs — Job gave up when a post, a permission change, or an RSS check fails on every try.
- Security — Sign-in locked when an address reaches the sign-in limit, and Saved secrets were removed after a lost installation keyThe key that locks your secrets; back it up with the database.
Monitor From a Script
GET /api/v1/bot answers with the bot's status and each service's latest heartbeatA service's regular I'm-alive note in the database, for an access tokenA key that lets your scripts call the panel's API as you with the bot:control scopeWhat an access token is allowed to do. That scopeWhat an access token is allowed to do also allows starting and stopping the bot, so it is recommended to keep the token's other scopesWhat an access token is allowed to do off, as described in Access Tokens and API.
Only an OperatorRole that runs the bot and its features, but not users, an AdministratorRole that can change everything, including users, or the OwnerThe first account; it can do everything and can't be removed can give a token the bot:control scope, because a ViewerRead-only role: sees everything, changes nothing can only grant features:read and logs:read.
Logs
The Logs page shows the events of the bot, the web service, and the workerBackground service that runs schedules and deliveries, as described in Logs. docker compose logs --follow app shows those too, plus the startup checks, the database migration, the setup code, the installation keyThe key that locks your secrets; back it up with the database lines, PostgreSQL, and s6-overlay.