- 필수 기능
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- 디지털 경험
- 소프트웨어 제공
- 보안
- 로그 관리
- 관리
- 인프라스트럭처
- ci
- containers
- csm
- ndm
- otel_guides
- overview
- slos
- synthetics
- tests
- 워크플로
SLO error budget alerts are threshold based and notify you when a certain percentage of your SLO’s error budget has been consumed. For example, alert me if 75% of the error budget for my 7-day target is consumed. Warn me if 50% is consumed (optional).
Note: Error budget alerts are available for the following SLO types:
For a description of key terminology around SLOs, including error budgets, see Service Level Objectives.
threshold
.
over the past target
number of days.You can create SLO error budget alerts using the create-monitor API endpoint. Below is an example query for an SLO monitor, which alerts when more than 75% of the error budget of an SLO is consumed. Replace slo_id with the alphanumeric ID of the SLO you wish to configure a burn rate alert on and replace time_window with one of 7d, 30d or 90d - depending on which target is used to configure your SLO:
error_budget("slo_id").over("time_window") > 75
In addition, SLO error budget alerts can also be created using the datadog_monitor resource in Terraform. Below is an example .tf
for configuring an error budget alert for a metric-based SLO using the same example query as above.
For provider versions v2.7.0 or earlier and v2.13.0 or later
Note: SLO error budget alerts are only supported in Terraform provider v2.7.0 or earlier and in provider v2.13.0 or later. Versions between v2.7.0 and v2.13.0 are not supported.
resource "datadog_monitor" "metric-based-slo" {
name = "SLO Error Budget Alert Example"
type = "slo alert"
query = <<EOT
error_budget("slo_id").over("time_window") > 75
EOT
message = "Example monitor message"
monitor_thresholds {
critical = 75
}
tags = ["foo:bar", "baz"]
}
Additional helpful documentation, links, and articles: