Health and monitoring
This page describes what you can observe on a running Docker install, what each health signal means, and what to alert on.
All commands below assume you run them from the install checkout and pass the authoritative env file:
cd /opt/openflaredocker compose --env-file /var/lib/openflare/.env -f docker-compose.all-in-one.yml psHealth endpoints
Section titled “Health endpoints”| Service | Endpoint | Auth | Healthy response |
|---|---|---|---|
| Control plane | GET /healthz on port 8787 |
none | {"ok":true} |
| Console | GET /console-healthz on port 8788 (and over HTTPS at your console host) |
none | {"ok":true} |
Updater (optional update profile) |
GET /healthz on port 8790 |
none | success status; reachable only on the private updatectl network |
By default the plane and the console are bound to loopback (PLANE_BIND 127.0.0.1:8787 and CONSOLE_BIND 127.0.0.1:8788). From the host:
curl -fsS http://127.0.0.1:8787/healthzcurl -fsS http://127.0.0.1:8788/console-healthzThe console health endpoint is also published at the console host through Traefik, so an external uptime monitor can poll https://<console-host>/console-healthz. The management API (/api/v1) must never be reachable from the public internet. A healthy external monitor therefore checks the console URL only. See Security.
/healthz on the plane only proves that the process is up and serving. It does not prove that cells are acknowledging publications. Use the cell signals in the sections below for that.
Container healthchecks
Section titled “Container healthchecks”Compose defines healthchecks for the long-running services. Read them with docker compose ps, which shows healthy, unhealthy or starting per service.
| Service | What the healthcheck verifies |
|---|---|
postgres |
pg_isready -U vrt -d vrt_plane |
plane |
The process answers /healthz |
updater |
The process answers :8790/healthz |
vrt-host |
The runtime supervisor is up, its metrics socket on 127.0.0.1:9494 answers, and a live workerd child exists (start period 20 s, up to 24 retries) |
cell-controller |
Its health listener on 127.0.0.1:9090 answers (it shares the network namespace of vrt-host) |
vrt-provider |
Its Postgres-protocol proxy listener on 127.0.0.1:19543 answers |
vrt-sql |
The D1 data-plane service listens on port 8082 |
redis |
redis-cli ping |
silo |
curl -fs http://127.0.0.1:9000/minio/health/live |
Notes:
cell-initandsilo-initare one-shot containers. They are expected to be in theexited (0)state after a successful start. An exit code other than 0 is a failure.traefikhas no Compose healthcheck. The installer verifies the edge by probing it over HTTPS instead (see TLS certificates). To check it yourself, request the console health endpoint over HTTPS.plane-loopbackis a small socat relay that shares the network namespace ofvrt-host. If it is down, the cell cannot reach the plane on loopback.
Quick overall check:
docker compose --env-file /var/lib/openflare/.env -f docker-compose.all-in-one.yml ps --format 'table {{.Service}}\t{{.State}}\t{{.Health}}'For service roles and ports, see Services and ports.
Every service logs to stdout and stderr, so use Compose:
# Follow everythingdocker compose --env-file /var/lib/openflare/.env -f docker-compose.all-in-one.yml logs -f --tail=100
# One servicedocker compose --env-file /var/lib/openflare/.env -f docker-compose.all-in-one.yml logs --tail=200 planedocker compose --env-file /var/lib/openflare/.env -f docker-compose.all-in-one.yml logs --tail=200 vrt-host cell-controllerServices most useful during an incident:
| Service | What its log tells you |
|---|---|
plane |
Boot (schema apply, signing key id and public key), cell channel requests, publication and retention activity |
cell-controller |
Whether the cell fetches desired state, applies it and acknowledges it, and the metrics push |
vrt-host |
Per-request platform errors for tenant workers |
traefik |
TLS and routing problems at the edge, ACME activity |
cell-init |
One-time cell bootstrap output, including rendering the trusted signing key |
updater |
Upgrade job progress (the same lines the console Settings page shows) |
Compose does not rotate logs by itself. Configure the Docker daemon’s default log driver options (for example max-size and max-file for the json-file driver in /etc/docker/daemon.json) so that container logs cannot fill the disk.
Platform error codes
Section titled “Platform error codes”Requests to tenant workers that fail inside the runtime are logged by vrt-host with a platform code. Use them to tell platform faults from application faults.
| Code | HTTP status | Meaning |
|---|---|---|
upstream_connect |
502 | The runtime could not connect to the worker process |
upstream_timeout |
504 | The worker process did not answer in time |
upstream_error |
502 | The worker process returned a malformed or aborted response |
worker_unavailable |
503 | The worker is not loaded or not ready |
tenant_unavailable |
503 | The tenant process is not available |
tenant_circuit_open |
503 | The tenant process kept failing and its circuit breaker is open |
tenant_wake_timeout |
503 | A hibernated tenant did not wake in time |
tenant_wake_failed |
503 | A hibernated tenant failed to wake |
wake_capacity |
503 | Too many concurrent wake-ups |
ws_capacity |
503 | WebSocket session capacity reached |
internal |
500 | Internal runtime error |
route_index_* |
503 | Routing index not ready or unavailable |
can_fetch_* |
503 | The worker-to-worker fetch permission check failed |
logs_rate_limited |
n/a | Worker log ingestion is being rate limited |
Metrics and statistics
Section titled “Metrics and statistics”What the cell collects
Section titled “What the cell collects”The cell-controller collects a report every 30 seconds by default. It scrapes the runtime’s loopback Prometheus metrics, asks the SQL service for D1 and queue statistics, lists Workflow and Durable Object instances, and pushes one document to the plane. The plane stores it idempotently, so a retried push never double counts. The console reads these stored reports.
The runtime’s own Prometheus endpoints (vrt-host on port 9494, vrt-provider on 9493, vrt-sql on 9492) are internal to the cell. In the all-in-one Compose stack they are not published to the host. You can scrape them only by joining your own container to the cell’s network or by running a scraper inside that network. This is not a supported turnkey setup.
Console and API views
Section titled “Console and API views”| Data | Where |
|---|---|
| Request, error, latency, CPU, cold-start views | Console, backed by cell reports |
| D1, queue, Workflow, Durable Object and R2 statistics | Console, and the management API .../stats endpoints (add ?history=1h, 24h or 7d for history) |
| Worker latency series | GET .../usage/series?metric=latency&windowMs=... |
| Monthly usage per team | GET /api/v1/teams/{teamId}/usage?month=YYYY-MM |
See Management API for authentication and exact paths. Some numbers are intentionally empty rather than invented, for example per-worker CPU, queue delivered counts and Durable Object active-instance counts.
Runtime metric names worth knowing
Section titled “Runtime metric names worth knowing”If you do scrape the runtime, these series are the most useful:
| Metric | Meaning |
|---|---|
vrt_host_hibernate_total |
Tenant processes hibernated |
vrt_host_wake_total{source} |
Wake-ups by source |
vrt_host_wake_seconds |
Wake latency histogram |
vrt_host_ws_session_end_total{reason} |
WebSocket session ends by reason (reattach_failed, replay_overflow and wake_failed are faults) |
vrt_cell_d1_promote_total{outcome} |
D1 promotion results (failed is a fault) |
vrt_cell_do_alarm_wake_total{outcome} |
Durable Object alarm wake results |
Retention of observability data
Section titled “Retention of observability data”The plane prunes stored data on a timer, so monitoring history is bounded. Defaults:
| Env | Default | Data pruned |
|---|---|---|
PLANE_LOG_RETENTION_DAYS |
7 | Ingested worker logs |
PLANE_OPS_RETENTION_DAYS |
30 | Terminal D1 and cell operations |
PLANE_METRICS_RETENTION_DAYS |
14 | Cell reports (metrics and resource snapshot history) |
PLANE_ASSET_RETENTION_DAYS |
7 | Unreferenced asset manifests and objects |
PLANE_PUBLICATION_KEEP |
20 | Acknowledged publications kept per cell |
PLANE_RETENTION_SWEEP_MS |
21600000 (6 hours) | Sweep interval; 0 disables the sweep |
See Configuration for how to set these in the env file.
What to alert on
Section titled “What to alert on”These are the conditions that matter for an operator. Build them with whatever uptime or metrics tool you already use.
| Condition | How to detect | Why it matters |
|---|---|---|
| Console unreachable | External check of https://<console-host>/console-healthz |
Operators and the upgrade flow lose access |
| Plane unhealthy | docker compose ps shows plane not healthy, or /healthz fails |
No new publications, cells cannot renew snapshots |
| Plane down for a long time | Plane down approaching 24 hours | Cells serve the last accepted snapshot for up to 24 hours and then fail closed. The plane is not on the tenant request path, but it must come back inside that window |
vrt-host or cell-controller unhealthy or restarting |
Compose health state, restart count | Tenant traffic is affected |
| Edge certificate expiry | Certificate notAfter on the console host and a tenant host |
A failed ACME renewal breaks HTTPS. Traefik renews automatically, so an expiry alert means renewal is failing |
| Disk space on the Docker data directory | Host disk monitoring | Postgres, volumes and logs all live there |
| Postgres unhealthy | postgres healthcheck |
Control plane cannot work |
| Repeated 5xx with platform codes | vrt-host logs |
See the error code table above |
| Backup age | Your backup job | See Backups |
| Cell not acknowledging | cell-controller and plane logs, or a stuck deployment |
See Troubleshooting |
Recommended: monitor from outside with OpenUptime
Section titled “Recommended: monitor from outside with OpenUptime”Run your external checks from somewhere that does not share fate with the OpenFlare host. OpenUptime is an open source uptime monitor with status pages, built by the same team as OpenFlare. It is a good fit for the two probes in the tip below:
- an HTTPS check on
https://<console-host>/console-healthz; - an HTTPS check on a real worker hostname that returns a known body.
Point it at public URLs only. Do not expose the management API (/api/v1) or the plane port to a monitor; see Security. Host-level signals such as disk space, container restarts and backup age still need your own host monitoring, because an HTTP probe cannot see them.
Before go-live, walk through the Production checklist.