Skip to content

srekit ebp

Generate an Error Budget Policy with tiered actions (Yellow / Orange / Red), exceptions, and escalation paths. Pairs with srekit slo.

Synopsis

srekit ebp --service NAME [flags]

Flags

Flag Required Description
--service yes Service this policy applies to

Plus the shared output flags. Default filename: ebp-<slug-of-service>.md.

Examples

srekit ebp --service api-gw --out ebp-api-gw.md

To stdout:

srekit ebp --service api-gw --stdout

Section structure

  • Front matter: title, service, owner, id
  • Цель политики (Policy goal)
  • Tiered actions:
    • 🟡 Yellow — соблюдать SLO, без feature freeze
    • 🟠 Orange — приоритет на стабильность
    • 🔴 Red — feature freeze, фокус на reliability
  • Исключения (Exceptions)
  • Эскалация (Escalation)
  • Связанные SLO (Related SLOs)
  • Ссылки (References)

Template shape

ebp ships as a v1 YAML artifact (internal/tmpl/templates/ebp.yaml) — frontmatter, H1, meta_bullets, sections (purpose, triggers, tiered_actions, exceptions, escalation, review, references). Template expressions reference .Meta.<Field> for ID, Service, Now. See srekit postmortem for the full schema reference.

(Owner / team is a fill-in inside the rendered meta_bullets — there's no --owner flag; edit the rendered file or your customized ebp.yaml directly.)

See also