Logging
agtOS uses Pino for structured JSON logging.Log levels
Set the log level viaLOG_LEVEL environment variable or the Settings API:
Output format
Log dashboard
The web dashboard includes a Logs page with filtering by level, component, and correlation ID. Access it athttp://localhost:4102 (Logs tab in the sidebar).
Metrics
agtOS exposes a Prometheus-compatible metrics endpoint for integration with Prometheus, Grafana, and other monitoring tools.Endpoint
text/plain; version=0.0.4).
The
/metrics endpoint does not require authentication, even when AGTOS_API_KEY is set. This allows Prometheus to scrape without token configuration.Available metrics
Prometheus configuration
Health Checks
The health system provides per-service status with response times.Endpoints
Service checkers
The health manager runs periodic checks on:Response format
200 when all services are healthy, 503 when any service is degraded.
Dashboard
The web dashboard Health page visualizes service health with color-coded status cards, latency metrics, and auto-refresh every 5 seconds. Access athttp://localhost:4102.
CLI diagnostics
doctor command.