Resource: honeycombio_slo

Creates a service level objective (SLO). For more information about SLOs, check out Set Service Level Objectives (SLOs).

Example Usage

resource "honeycombio_derived_column" "request_latency_sli" {
  alias       = "sli.request_latency"
  description = "SLI: request latency less than 300ms"
  dataset     = var.dataset

  # heredoc also works
  expression = file("../sli/sli.request_latency.honeycomb")
}

resource "honeycombio_slo" "slo" {
  name              = "Latency SLO"
  description       = "example of an SLO"
  dataset           = var.dataset
  sli               = honeycombio_derived_column.request_latency_sli.alias
  target_percentage = 99.9
  time_period       = 30
}

Argument Reference

The following arguments are supported:

Attribute Reference

In addition to all arguments above, the following attributes are exported:

Import

SLOs can be imported using a combination of the dataset name and their ID, e.g.

$ terraform import honeycombio_slo.my_slo my-dataset/bj9BwOb1uKz

You can find the ID in the URL bar when visiting the SLO from the UI.