Monitoring¶
OIAF exposes health and metrics endpoints for operational monitoring.
Endpoints¶
| Endpoint | Purpose |
|---|---|
GET /healthz |
Liveness (returns {"status":"ok"}) |
GET /readyz |
Readiness (returns {"status":"ready"}) |
GET /metrics |
Prometheus metrics (enable via OIAF_METRICS_ENABLED=true) |
GET /version |
Build/version info |
The
/metricsendpoint is a placeholder in the MVP and will emit real Prometheus series in a future release.
Prometheus Metrics (Planned)¶
Expected series:
oiaf_access_evaluations_total{decision}— count by decision (allow/deny/challenge/alert)oiaf_risk_score— histogram of risk scoresoiaf_challenge_total{method,status}— challenges by method and outcomeoiaf_mfa_verify_total{method,result}— MFA verification outcomesoiaf_http_requests_total{code,method,path}— HTTP request countsoiaf_http_request_duration_seconds— latency histogram
Alerting Rules¶
Suggested alerts:
- High deny rate:
rate(oiaf_access_evaluations_total{decision="deny"}[5m])above baseline — possible attack or misconfiguration. - MFA fatigue: spike in
challenge.failed/ repeated denials for one identity. - Elevated risk: sustained high
oiaf_risk_scorequantiles. - Control plane down:
/healthzfailing or scrape down. - Audit chain broken:
oiafctl audit verifyreturnsvalid:false— page immediately. - Error rate: 5xx rate above threshold.
Logging¶
- Structured JSON logs (
log_format: json) includerequest_id, method, path, status, and duration. - Forward to a central pipeline and correlate via
X-Request-ID.
Dashboards¶
- Build dashboards for evaluation volume by decision, risk score distribution, MFA success rate, and API latency.