Skip to content

feat: weekly SLO error-budget report #543 - #744

Open
Sulamoney222 wants to merge 1 commit into
Chronopay-Org:mainfrom
Sulamoney222:feat/slo-weekly-report
Open

feat: weekly SLO error-budget report #543#744
Sulamoney222 wants to merge 1 commit into
Chronopay-Org:mainfrom
Sulamoney222:feat/slo-weekly-report

Conversation

@Sulamoney222

Copy link
Copy Markdown

Overview

This PR adds a weekly SLO error-budget Slack report that posts remaining budget percent per service, weekly consumption, a worst-first leaderboard, and a link to the burn-rate dashboard.

Related Issue

Closes #543

Changes

Weekly SLO report

  • [ADD] scripts/slo-weekly-report.ts

    • Uses real route objectives from sloMetrics.ts (booking_intent, slots_list, checkout, escrow_listener).
    • Remaining budget via headroom formula (1 − observedErrorRate / errorBudget).
    • Slack blocks with leaderboard, remaining %, weekly consumption %, status labels.
    • Handles empty week (no traffic → 100% remaining), Slack outage (fail loud), exhausted budgets.
  • [ADD] ops/dashboards/slo-burn-rate.json

    • Grafana dashboard (uid: slo-burn-rate) for burn-rate panels.
  • [ADD] .github/workflows/slo-weekly-report.yml

    • Monday 09:00 UTC cron + workflow_dispatch.
  • [ADD] scripts/__tests__/slo-weekly-report.test.ts

  • [ADD] docs/slo-weekly-report.md

  • [MODIFY] docs/observability.md — brief SLO weekly-report note

Verification Results

npm test -- --testPathPattern=slo-weekly-report --coverage=false
✅ 21/21 passed
Acceptance Criteria Status
Compute weekly consumption per SLO ✅ Headroom formula + Prom/fallback path
Slack message with remaining budget % ✅ Leaderboard + status labels
Burn-rate dashboard link ✅ Footer link + ops/dashboards/slo-burn-rate.json
Per-service leaderboard ✅ Sorted worst-first
Edge: empty week / Slack outage / exhausted ✅ Covered in unit tests

@drips-wave

drips-wave Bot commented Aug 3, 2026

Copy link
Copy Markdown

@Sulamoney222 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add SLO weekly error-budget report to Slack with remaining budget percent

1 participant