grafana_slos (Data Source)

Datasource for retrieving all SLOs.

Example Usage

resource "grafana_slo" "test" {
  name        = "Terraform Testing"
  description = "Terraform Description"
  query {
    freeform {
      query = "sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))"
    }
    type = "freeform"
  }
  objectives {
    value  = 0.995
    window = "30d"
  }
  destination_datasource {
    uid = "grafanacloud-prom"
  }
  label {
    key   = "custom"
    value = "value"
  }
  alerting {
    fastburn {
      annotation {
        key   = "name"
        value = "Critical - SLO Burn Rate Alert"
      }
      label {
        key   = "type"
        value = "slo"
      }
    }

    slowburn {
      annotation {
        key   = "name"
        value = "Warning - SLO Burn Rate Alert"
      }
      label {
        key   = "type"
        value = "slo"
      }
    }
  }
}

data "grafana_slos" "slos" {}

Schema

Read-Only

Nested Schema for slos

Read-Only:

Nested Schema for slos.alerting

Read-Only:

Nested Schema for slos.alerting.annotation

Read-Only:

Nested Schema for slos.alerting.fastburn

Read-Only:

Nested Schema for slos.alerting.fastburn.annotation

Read-Only:

Nested Schema for slos.alerting.fastburn.label

Read-Only:

Nested Schema for slos.alerting.label

Read-Only:

Nested Schema for slos.alerting.slowburn

Read-Only:

Nested Schema for slos.alerting.slowburn.annotation

Read-Only:

Nested Schema for slos.alerting.slowburn.label

Read-Only:

Nested Schema for slos.destination_datasource

Read-Only:

Nested Schema for slos.label

Read-Only:

Nested Schema for slos.objectives

Read-Only:

Nested Schema for slos.query

Read-Only:

Nested Schema for slos.query.freeform

Read-Only:

Nested Schema for slos.query.ratio

Read-Only: