Skip to main content
agtOS provides three observability interfaces: structured JSON logs, Prometheus-compatible metrics, and a health check system with per-service status.

Logging

agtOS uses Pino for structured JSON logging.

Log levels

Set the log level via LOG_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 at http://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

Returns metrics in the standard text exposition format (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

Returns 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 at http://localhost:4102.

CLI diagnostics

See CLI Reference for details on the doctor command.