Loading

Create an SLO burn rate rule

Important

For Observability serverless projects, The Editor role or higher is required to create SLOs. To learn more, refer to Assign user roles and privileges.

For Elastic Stack, to create and manage SLOs, you need an appropriate license, an Elasticsearch cluster with both transform and ingest node roles present, and SLO access must be configured.

Create an SLO burn rate rule to get alerts when the burn rate is too high over a defined threshold for two different lookback periods: a long period and a short period that is 1/12th of the long period. For example, if your long lookback period is one hour, your short lookback period is five minutes.

Choose which SLO to monitor and then define multiple burn rate windows with appropriate severity. For each period, the burn rate is computed as the error rate divided by the error budget. When the burn rates for both periods surpass the threshold, an alert is triggered. Add actions to raise alerts via services or third-party integrations e.g. mail, Slack, Jira.

Create rule for failed transaction rate threshold
Tip

These steps show how to use the Alerts UI. You can also create an SLO burn rate rule directly from Observability* → *SLOs. Click the more options icon (More options) to the right of the SLO you want to add a burn rate rule for, and select Bell Create new alert rule from the menu.

When you use the UI to create an SLO, a default SLO burn rate alert rule is created automatically. The burn rate rule will use the default configuration and no connector. You must configure a connector if you want to receive alerts for SLO breaches.

To create an SLO burn rate rule:

  1. In Observability UI, go to Alerts.

  2. Select Manage Rules from the Alerts page, and select Create rule.

  3. Enter a Name for your rule, and any optional Tags for more granular reporting (leave blank if unsure).

  4. Select SLO burn rate from the Select rule type list.

  5. Select the SLO you want to monitor.

  6. Define multiple burn rate windows for each Action Group (defaults to 4 windows but you can edit):

    • Lookback (hours): Enter the lookback period for this window. A shorter period equal to 1/12th of this period will be used for faster recovery.
    • Burn rate threshold: Enter a burn rate for this window.
    • Action Group: Select a severity for this window.
  7. Define the interval to check the rule e.g. check every 1 minute.

  8. (Optional) Set up Actions.

  9. Save your rule.

You can extend your rules with actions that interact with third-party systems, write to logs or indices, or send user notifications. You can add an action to a rule at any time. You can create rules without adding actions, and you can also define multiple actions for a single rule.

To add actions to rules, you must first create a connector for that service (for example, an email or external incident management system), which you can then use for different rules, each with their own action frequency.

Learn how to view alerts and triage SLO burn rate breaches: