MONITORING

MONITORING

MONITORING is continuous governance scoring. Real-time visibility, not snapshots.

METRICS ENDPOINT

Metrics Endpoint

`` GET /api/v1/metrics → Prometheus text format

Counters: canonic_api_requests_total{endpoint,method,status} canonic_auth_total{result}

Histograms: canonic_api_request_duration_seconds{endpoint} canonic_vault_command_duration_seconds{command} ``

HEALTH CHECK

Health Check

`` GET /api/v1/health → extended JSON

{ “status”: “ok”, “port”: 8255, “uptime_s”: 12345, “checks”: { “ledger_head”: “ok”, “vault_dir”: “ok”, “wallet_valid”: “ok” } } ``

GOVERNANCE SCORE TRACKING

Governance Score Tracking

magic validate → 255/255 required On drop: alert via NOTIFIER On recovery: log restoration event to LEDGER

RETENTION

Retention

  • Raw metrics: 30-day rolling window (in-memory counters reset on restart)
  • Structured logs: persisted by Cloudflare dashboard (worker) or stderr capture (API)
  • Governance scores: permanent in LEDGER
*MONITORING SPEC SERVICES*
TALK AUTO