Datasource for retrieving all SLOs.
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" {}
id
(String) The ID of this resource.slos
(List of Object) Returns a list of all SLOs" (see below for nested schema)slos
Read-Only:
alerting
(List of Object) (see below for nested schema)description
(String)destination_datasource
(List of Object) (see below for nested schema)label
(List of Object) (see below for nested schema)name
(String)objectives
(List of Object) (see below for nested schema)query
(List of Object) (see below for nested schema)uuid
(String)slos.alerting
Read-Only:
annotation
(List of Object) (see below for nested schema)fastburn
(List of Object) (see below for nested schema)label
(List of Object) (see below for nested schema)slowburn
(List of Object) (see below for nested schema)slos.alerting.annotation
Read-Only:
key
(String)value
(String)slos.alerting.fastburn
Read-Only:
annotation
(List of Object) (see below for nested schema)label
(List of Object) (see below for nested schema)slos.alerting.fastburn.annotation
Read-Only:
key
(String)value
(String)slos.alerting.fastburn.label
Read-Only:
key
(String)value
(String)slos.alerting.label
Read-Only:
key
(String)value
(String)slos.alerting.slowburn
Read-Only:
annotation
(List of Object) (see below for nested schema)label
(List of Object) (see below for nested schema)slos.alerting.slowburn.annotation
Read-Only:
key
(String)value
(String)slos.alerting.slowburn.label
Read-Only:
key
(String)value
(String)slos.destination_datasource
Read-Only:
uid
(String)slos.label
Read-Only:
key
(String)value
(String)slos.objectives
Read-Only:
value
(Number)window
(String)slos.query
Read-Only:
freeform
(List of Object) (see below for nested schema)ratio
(List of Object) (see below for nested schema)type
(String)slos.query.freeform
Read-Only:
query
(String)slos.query.ratio
Read-Only:
group_by_labels
(List of String)success_metric
(String)total_metric
(String)