Health & Metrics
Liveness and observability endpoints. No authentication required for /health.
GET /api/v1/health
Returns runtime liveness status.
Response 200 OK
{"status": "ok"}
Returns 503 Service Unavailable if the runtime is shutting down.
GET /api/v1/metrics
Returns Prometheus-format metrics. Requires authentication.
Response 200 OK (text/plain; charset=utf-8)
# HELP akshi_build_info Build metadata.
# TYPE akshi_build_info gauge
akshi_build_info{version="0.5.0",commit="a1b2c3d"} 1
# HELP akshi_agents_total Current number of loaded agents.
# TYPE akshi_agents_total gauge
akshi_agents_total 3
# HELP akshi_agent_restarts_total Cumulative agent restart count.
# TYPE akshi_agent_restarts_total counter
akshi_agent_restarts_total{agent="log-monitor"} 0
akshi_agent_restarts_total{agent="researcher"} 1
# HELP akshi_inference_requests_total Inference requests routed.
# TYPE akshi_inference_requests_total counter
akshi_inference_requests_total{route="local"} 42
akshi_inference_requests_total{route="cloud"} 7
# HELP akshi_fuel_consumed_total WASM fuel consumed.
# TYPE akshi_fuel_consumed_total counter
akshi_fuel_consumed_total{agent="log-monitor"} 128000
Key metric families
| Metric | Type | Description |
|---|---|---|
akshi_build_info | gauge | Version and commit metadata |
akshi_agents_total | gauge | Number of loaded agents |
akshi_agent_restarts_total | counter | Per-agent restart count |
akshi_inference_requests_total | counter | Inference requests by route type |
akshi_fuel_consumed_total | counter | WASM fuel consumed per agent |
akshi_sync_envelopes_total | counter | Sync envelopes sent/received |
akshi_approvals_pending | gauge | Pending approval requests |
akshi_http_request_duration_seconds | histogram | API request latency |