Skip to content

Add SLO error-budget tracking with weekly burn-rate report #457

Description

@thlpkee20-wq

Description

Define SLOs (availability, p95 latency, payout success) and track error-budget burn weekly. Emit a report and gate deploys when burn-rate exceeds 2x for the previous window.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Relevant code: src/lib/metrics.ts, docs/
  • Report must be queryable per service line

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b obs/slo-error-budget
  • Implement changes
    • Define SLO YAML and parser
    • Compute burn-rate from metrics history
    • Add weekly cron emitting markdown report
  • Validate security and correctness assumptions

Test and commit

  • Run tests
    • npm test
  • Cover edge cases
    • Gap in metrics, partial week, threshold rounding
  • Include test output and notes

Example commit message

obs: SLO error-budget burn-rate tracking

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions