Skip to content
dimmiDocs

Operate

Monitor your server

Check health endpoints, tail JSON logs, scrape Prometheus metrics, and send OpenTelemetry traces or Sentry errors.

dimmi exposes two public health checks out of the box and optionally exports Prometheus metrics, OpenTelemetry (OTLP) traces, and Sentry errors.

Endpoint Response
https://support.example.com/up 200 with {"status":"up","release":"<revision>"} whenever the process is running.
https://support.example.com/ready 200 when healthy, or 503 if database, valkey, or maintenance fails. Body marks each check pass, warn, or fail.

Point your uptime monitor at /ready. During maintenance mode (dimmi down), maintenance reports warn while still returning 200.

Docker runs /dimmi health (which checks /ready) every 15 seconds on web and every 30 seconds on worker. Run dimmictl status to view (healthy) or (unhealthy) beside each container.

Follow live logs for all services or specific containers:

Terminal window
dimmictl logs web worker

Logs output one JSON object per line by default. Tune them with dimmictl set:

Variable Default Options
DIMMI_LOG__LEVEL info debug, info, warn, error
DIMMI_LOG__DRIVER json json, text

On servers prepared by the installer, Docker rotates logs at 5 files of 20 MB per container.

Enable metrics scraping:

Terminal window
dimmictl set DIMMI_TELEMETRY__METRICS=prometheus

web and worker expose /metrics on port 9090 inside the private dimmi_dimmi Docker network (never exposed publicly). Attach your Prometheus scraper to dimmi_dimmi and scrape web:9090 and worker:9090. When disabled, /metrics returns 404.

Configure these with dimmictl set:

Variable Value
DIMMI_TELEMETRY__TRACING Set otlp to export traces over HTTP (default none).
DIMMI_TELEMETRY__OTLP_ENDPOINT Collector URL, such as http://collector:4318/v1/traces.
DIMMI_TELEMETRY__OTLP_HEADERS__<NAME> Extra header on trace exports, such as DIMMI_TELEMETRY__OTLP_HEADERS__AUTHORIZATION.
DIMMI_TELEMETRY__SENTRY_DSN Sentry DSN; reported errors include trace IDs automatically.