# 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.

## Health checks

| 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`](/self-hosting/cli/)), `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.

## View logs

Follow live logs for all services or specific containers:

```bash
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.

## Prometheus metrics

Enable metrics scraping:

```bash
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`.

## Traces and error tracking

Configure these with [`dimmictl set`](/self-hosting/configuration/):

| 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. |

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
