Monitoring and logs
Covers probes, metrics, audit logs and async task observability.

Health checks
| Path | Purpose |
|---|---|
/healthz | Process liveness, plain JSON |
/readyz | Database and Redis readiness, 503 when unavailable |
Metrics endpoint
/metrics exposes Prometheus metrics. By default only loopback and private networks may scrape it. Configure a token or allowed CIDRs:
SECURITY_METRICS_TOKEN: when set, requiresAuthorization: Bearer <token>SECURITY_METRICS_ALLOWED_CIDRS: when no token is set, allows only these TCP peer networks
The server reads RemoteAddr and does not trust a spoofable X-Forwarded-For.
Log types
| Log | Content |
|---|---|
| Operation log | Who did what and when |
| Login log | Success and failure records with source IP |
| Audit log | Before and after values for key data changes |
Async task observability
Queue and scheduled task execution records are available in the admin UI. Failed jobs land in system_failed_jobs and support filtering and replay.
