Monitor a self-hosted Requestarium with Prometheus and Grafana

A self-hosted tool that your whole engineering team depends on deserves the same monitoring as your own services. Requestarium's backend exposes health endpoints, Prometheus metrics and structured logs, and the self-hosted bundle comes with a ready Prometheus and Grafana setup.

Health endpoints

On the API port, behind the /api prefix from outside (for example https://requestarium.example.com/api/ready):

Path200 whenUse for
/livethe process runsliveness probe
/readythe database answers and the server isn't shutting downreadiness probe, load balancer check

/ready answers 503 with a reason (database or shutting_down) otherwise. On shutdown, the backend keeps serving for a short drain period while /ready already fails, so the load balancer stops sending it traffic before it closes. No dropped requests during a rolling upgrade.

Metrics

Set TAIRI_METRICS_ADDR (the Compose bundle and the Helm chart use :9090 on the internal network) and Prometheus can scrape GET /metrics. It's a separate listener, not the API port, so it is never exposed through Caddy or the ingress. Set TAIRI_METRICS_TOKEN to require a bearer token.

The metrics worth putting on a dashboard first:

MetricWatch for
requestarium_http_requests_total{code}a rising share of 5xx
requestarium_http_request_duration_secondsp95 latency by service
requestarium_db_up0 means the backend can't reach Postgres
requestarium_db_pool_connections{state} vs requestarium_db_pool_max_connectionsa pool that's always full
requestarium_backup_last_success_timestamp_secondsolder than a day and a half
requestarium_license_seats_used vs requestarium_license_seats_totalrunning out of seats
requestarium_license_expiry_timestamp_secondsunder 30 days away
requestarium_active_users{window}signed-in people in the last 5 minutes, hour or day

Labels are bounded: unknown paths from internet scanners count as unknown instead of creating new series.

Alerts worth having

prometheus-rules.yml
groups:
  - name: requestarium
    rules:
      - alert: RequestariumDatabaseDown
        expr: max(requestarium_db_up) == 0
        for: 2m
      - alert: RequestariumBackupStale
        expr: time() - max(requestarium_backup_last_success_timestamp_seconds) > 36 * 3600
        for: 15m
      - alert: RequestariumLicenceExpiring
        expr: min(requestarium_license_expiry_timestamp_seconds) - time() < 30 * 86400

The bundle ships a Requestarium Grafana dashboard and alert rules along these lines (the Compose monitoring profile, or monitoring.prometheusRule and monitoring.grafanaDashboard in the Helm chart). No Alertmanager is bundled: route firing alerts to email or chat with the one you already run.

Logs

The backend writes JSON lines to stdout (docker compose logs backend, or your Kubernetes log pipeline), ready for Loki, Elasticsearch or whatever you already run. Access lines never hold the query string, headers or bodies, and by default only 5xx responses get one (TAIRI_ACCESS_LOG=all logs every request).

Every API response carries an X-Request-Id header, and the same request_id is on the log lines of that request. When someone reports an error, ask for the request ID from their browser's network tab and search the log for it.

The doctor

Terminal
docker compose exec backend /requestarium-api doctor
kubectl -n requestarium exec deploy/requestarium-backend -- /requestarium-api doctor

Each check prints PASS, WARN, FAIL or SKIP, with a fix for every warning and failure: configuration, database and migrations, clock drift, licence and seats, email, Redis, backups and updates. It exits 1 when a check fails and prints JSON with --json, so it fits in a nightly job too. Settings ▸ Installation ▸ Checks ▸ Run checks runs the same checks from the web app.

When you need help, the support bundle collects what support needs, without secrets.