Skip to main content

Observability

:::info Source Sourced from services/enrollment-service/OBSERVABILITY.md in the documentation repo. :::

1. Logs

Events: enrollment.created, .completed, .expired, .revoked, .accessed, enrollment.bulk.started|completed|failed, enrollment.ABAC.denied.

2. Metrics

RED

  • enrollment_api_requests_total{endpoint,status} counter
  • enrollment_api_duration_seconds{endpoint} histogram

Domain

  • enrollment_created_total{source_kind} counter
  • enrollment_state_transitions_total{from,to} counter
  • enrollment_active gauge (per tenant)
  • enrollment_bulk_duration_seconds histogram
  • enrollment_expiration_rate gauge

3. Traces

Spans: enrollment.create, enrollment.complete, enrollment.revoke, enrollment.bulk.insert.

4. Dashboards

  • Enrollment funnel (created → active → completed).
  • Source distribution.
  • Expiration + revocation rates.

5. Alerts

AlertThresholdSeverity
enrollment-create-failure> 1%P2
stuck-expiration-jobno runs in 24hP2
bulk-enrollment-failure> 5%P2

6. SLOs

SLITarget
Create p95< 500ms
Completion event latency< 5s
API availability99.99%