grafana.SLO
Explore with Pulumi AI
Resource manages Grafana SLOs.
- Official documentation
- API documentation
- Additional Information On Alerting Rule Annotations and Labels
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test = new grafana.slo.SLO("test", {
name: "Terraform Testing",
description: "Terraform Description",
queries: [{
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",
}],
destinationDatasource: {
uid: "grafanacloud-prom",
},
labels: [{
key: "slo",
value: "terraform",
}],
alertings: [{
fastburns: [{
annotations: [
{
key: "name",
value: "SLO Burn Rate Very High",
},
{
key: "description",
value: "Error budget is burning too fast",
},
],
}],
slowburns: [{
annotations: [
{
key: "name",
value: "SLO Burn Rate High",
},
{
key: "description",
value: "Error budget is burning too fast",
},
],
}],
}],
});
import pulumi
import pulumiverse_grafana as grafana
test = grafana.slo.SLO("test",
name="Terraform Testing",
description="Terraform Description",
queries=[{
"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",
},
labels=[{
"key": "slo",
"value": "terraform",
}],
alertings=[{
"fastburns": [{
"annotations": [
{
"key": "name",
"value": "SLO Burn Rate Very High",
},
{
"key": "description",
"value": "Error budget is burning too fast",
},
],
}],
"slowburns": [{
"annotations": [
{
"key": "name",
"value": "SLO Burn Rate High",
},
{
"key": "description",
"value": "Error budget is burning too fast",
},
],
}],
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/slo"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := slo.NewSLO(ctx, "test", &slo.SLOArgs{
Name: pulumi.String("Terraform Testing"),
Description: pulumi.String("Terraform Description"),
Queries: slo.SLOQueryArray{
&slo.SLOQueryArgs{
Freeform: &slo.SLOQueryFreeformArgs{
Query: pulumi.String("sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))"),
},
Type: pulumi.String("freeform"),
},
},
Objectives: slo.SLOObjectiveArray{
&slo.SLOObjectiveArgs{
Value: pulumi.Float64(0.995),
Window: pulumi.String("30d"),
},
},
DestinationDatasource: &slo.SLODestinationDatasourceArgs{
Uid: pulumi.String("grafanacloud-prom"),
},
Labels: slo.SLOLabelArray{
&slo.SLOLabelArgs{
Key: pulumi.String("slo"),
Value: pulumi.String("terraform"),
},
},
Alertings: slo.SLOAlertingArray{
&slo.SLOAlertingArgs{
Fastburns: slo.SLOAlertingFastburnArray{
&slo.SLOAlertingFastburnArgs{
Annotations: slo.SLOAlertingFastburnAnnotationArray{
&slo.SLOAlertingFastburnAnnotationArgs{
Key: pulumi.String("name"),
Value: pulumi.String("SLO Burn Rate Very High"),
},
&slo.SLOAlertingFastburnAnnotationArgs{
Key: pulumi.String("description"),
Value: pulumi.String("Error budget is burning too fast"),
},
},
},
},
Slowburns: slo.SLOAlertingSlowburnArray{
&slo.SLOAlertingSlowburnArgs{
Annotations: slo.SLOAlertingSlowburnAnnotationArray{
&slo.SLOAlertingSlowburnAnnotationArgs{
Key: pulumi.String("name"),
Value: pulumi.String("SLO Burn Rate High"),
},
&slo.SLOAlertingSlowburnAnnotationArgs{
Key: pulumi.String("description"),
Value: pulumi.String("Error budget is burning too fast"),
},
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var test = new Grafana.Slo.SLO("test", new()
{
Name = "Terraform Testing",
Description = "Terraform Description",
Queries = new[]
{
new Grafana.Slo.Inputs.SLOQueryArgs
{
Freeform = new Grafana.Slo.Inputs.SLOQueryFreeformArgs
{
Query = "sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))",
},
Type = "freeform",
},
},
Objectives = new[]
{
new Grafana.Slo.Inputs.SLOObjectiveArgs
{
Value = 0.995,
Window = "30d",
},
},
DestinationDatasource = new Grafana.Slo.Inputs.SLODestinationDatasourceArgs
{
Uid = "grafanacloud-prom",
},
Labels = new[]
{
new Grafana.Slo.Inputs.SLOLabelArgs
{
Key = "slo",
Value = "terraform",
},
},
Alertings = new[]
{
new Grafana.Slo.Inputs.SLOAlertingArgs
{
Fastburns = new[]
{
new Grafana.Slo.Inputs.SLOAlertingFastburnArgs
{
Annotations = new[]
{
new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
{
Key = "name",
Value = "SLO Burn Rate Very High",
},
new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
{
Key = "description",
Value = "Error budget is burning too fast",
},
},
},
},
Slowburns = new[]
{
new Grafana.Slo.Inputs.SLOAlertingSlowburnArgs
{
Annotations = new[]
{
new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
{
Key = "name",
Value = "SLO Burn Rate High",
},
new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
{
Key = "description",
Value = "Error budget is burning too fast",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.slo.SLO;
import com.pulumi.grafana.slo.SLOArgs;
import com.pulumi.grafana.slo.inputs.SLOQueryArgs;
import com.pulumi.grafana.slo.inputs.SLOQueryFreeformArgs;
import com.pulumi.grafana.slo.inputs.SLOObjectiveArgs;
import com.pulumi.grafana.slo.inputs.SLODestinationDatasourceArgs;
import com.pulumi.grafana.slo.inputs.SLOLabelArgs;
import com.pulumi.grafana.slo.inputs.SLOAlertingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new SLO("test", SLOArgs.builder()
.name("Terraform Testing")
.description("Terraform Description")
.queries(SLOQueryArgs.builder()
.freeform(SLOQueryFreeformArgs.builder()
.query("sum(rate(apiserver_request_total{code!=\"500\"}[$__rate_interval])) / sum(rate(apiserver_request_total[$__rate_interval]))")
.build())
.type("freeform")
.build())
.objectives(SLOObjectiveArgs.builder()
.value(0.995)
.window("30d")
.build())
.destinationDatasource(SLODestinationDatasourceArgs.builder()
.uid("grafanacloud-prom")
.build())
.labels(SLOLabelArgs.builder()
.key("slo")
.value("terraform")
.build())
.alertings(SLOAlertingArgs.builder()
.fastburns(SLOAlertingFastburnArgs.builder()
.annotations(
SLOAlertingFastburnAnnotationArgs.builder()
.key("name")
.value("SLO Burn Rate Very High")
.build(),
SLOAlertingFastburnAnnotationArgs.builder()
.key("description")
.value("Error budget is burning too fast")
.build())
.build())
.slowburns(SLOAlertingSlowburnArgs.builder()
.annotations(
SLOAlertingSlowburnAnnotationArgs.builder()
.key("name")
.value("SLO Burn Rate High")
.build(),
SLOAlertingSlowburnAnnotationArgs.builder()
.key("description")
.value("Error budget is burning too fast")
.build())
.build())
.build())
.build());
}
}
resources:
test:
type: grafana:slo:SLO
properties:
name: Terraform Testing
description: Terraform Description
queries:
- 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
destinationDatasource:
uid: grafanacloud-prom
labels:
- key: slo
value: terraform
alertings:
- fastburns:
- annotations:
- key: name
value: SLO Burn Rate Very High
- key: description
value: Error budget is burning too fast
slowburns:
- annotations:
- key: name
value: SLO Burn Rate High
- key: description
value: Error budget is burning too fast
Advanced
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test = new grafana.slo.SLO("test", {
name: "Complex Resource - Terraform Ratio Query Example",
description: "Complex Resource - Terraform Ratio Query Description",
queries: [{
ratio: {
successMetric: "kubelet_http_requests_total{status!~\"5..\"}",
totalMetric: "kubelet_http_requests_total",
groupByLabels: [
"job",
"instance",
],
},
type: "ratio",
}],
objectives: [{
value: 0.995,
window: "30d",
}],
destinationDatasource: {
uid: "grafanacloud-prom",
},
labels: [{
key: "slo",
value: "terraform",
}],
alertings: [{
fastburns: [{
annotations: [
{
key: "name",
value: "SLO Burn Rate Very High",
},
{
key: "description",
value: "Error budget is burning too fast",
},
],
labels: [{
key: "type",
value: "slo",
}],
}],
slowburns: [{
annotations: [
{
key: "name",
value: "SLO Burn Rate High",
},
{
key: "description",
value: "Error budget is burning too fast",
},
],
labels: [{
key: "type",
value: "slo",
}],
}],
}],
});
import pulumi
import pulumiverse_grafana as grafana
test = grafana.slo.SLO("test",
name="Complex Resource - Terraform Ratio Query Example",
description="Complex Resource - Terraform Ratio Query Description",
queries=[{
"ratio": {
"success_metric": "kubelet_http_requests_total{status!~\"5..\"}",
"total_metric": "kubelet_http_requests_total",
"group_by_labels": [
"job",
"instance",
],
},
"type": "ratio",
}],
objectives=[{
"value": 0.995,
"window": "30d",
}],
destination_datasource={
"uid": "grafanacloud-prom",
},
labels=[{
"key": "slo",
"value": "terraform",
}],
alertings=[{
"fastburns": [{
"annotations": [
{
"key": "name",
"value": "SLO Burn Rate Very High",
},
{
"key": "description",
"value": "Error budget is burning too fast",
},
],
"labels": [{
"key": "type",
"value": "slo",
}],
}],
"slowburns": [{
"annotations": [
{
"key": "name",
"value": "SLO Burn Rate High",
},
{
"key": "description",
"value": "Error budget is burning too fast",
},
],
"labels": [{
"key": "type",
"value": "slo",
}],
}],
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/slo"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := slo.NewSLO(ctx, "test", &slo.SLOArgs{
Name: pulumi.String("Complex Resource - Terraform Ratio Query Example"),
Description: pulumi.String("Complex Resource - Terraform Ratio Query Description"),
Queries: slo.SLOQueryArray{
&slo.SLOQueryArgs{
Ratio: &slo.SLOQueryRatioArgs{
SuccessMetric: pulumi.String("kubelet_http_requests_total{status!~\"5..\"}"),
TotalMetric: pulumi.String("kubelet_http_requests_total"),
GroupByLabels: pulumi.StringArray{
pulumi.String("job"),
pulumi.String("instance"),
},
},
Type: pulumi.String("ratio"),
},
},
Objectives: slo.SLOObjectiveArray{
&slo.SLOObjectiveArgs{
Value: pulumi.Float64(0.995),
Window: pulumi.String("30d"),
},
},
DestinationDatasource: &slo.SLODestinationDatasourceArgs{
Uid: pulumi.String("grafanacloud-prom"),
},
Labels: slo.SLOLabelArray{
&slo.SLOLabelArgs{
Key: pulumi.String("slo"),
Value: pulumi.String("terraform"),
},
},
Alertings: slo.SLOAlertingArray{
&slo.SLOAlertingArgs{
Fastburns: slo.SLOAlertingFastburnArray{
&slo.SLOAlertingFastburnArgs{
Annotations: slo.SLOAlertingFastburnAnnotationArray{
&slo.SLOAlertingFastburnAnnotationArgs{
Key: pulumi.String("name"),
Value: pulumi.String("SLO Burn Rate Very High"),
},
&slo.SLOAlertingFastburnAnnotationArgs{
Key: pulumi.String("description"),
Value: pulumi.String("Error budget is burning too fast"),
},
},
Labels: slo.SLOAlertingFastburnLabelArray{
&slo.SLOAlertingFastburnLabelArgs{
Key: pulumi.String("type"),
Value: pulumi.String("slo"),
},
},
},
},
Slowburns: slo.SLOAlertingSlowburnArray{
&slo.SLOAlertingSlowburnArgs{
Annotations: slo.SLOAlertingSlowburnAnnotationArray{
&slo.SLOAlertingSlowburnAnnotationArgs{
Key: pulumi.String("name"),
Value: pulumi.String("SLO Burn Rate High"),
},
&slo.SLOAlertingSlowburnAnnotationArgs{
Key: pulumi.String("description"),
Value: pulumi.String("Error budget is burning too fast"),
},
},
Labels: slo.SLOAlertingSlowburnLabelArray{
&slo.SLOAlertingSlowburnLabelArgs{
Key: pulumi.String("type"),
Value: pulumi.String("slo"),
},
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var test = new Grafana.Slo.SLO("test", new()
{
Name = "Complex Resource - Terraform Ratio Query Example",
Description = "Complex Resource - Terraform Ratio Query Description",
Queries = new[]
{
new Grafana.Slo.Inputs.SLOQueryArgs
{
Ratio = new Grafana.Slo.Inputs.SLOQueryRatioArgs
{
SuccessMetric = "kubelet_http_requests_total{status!~\"5..\"}",
TotalMetric = "kubelet_http_requests_total",
GroupByLabels = new[]
{
"job",
"instance",
},
},
Type = "ratio",
},
},
Objectives = new[]
{
new Grafana.Slo.Inputs.SLOObjectiveArgs
{
Value = 0.995,
Window = "30d",
},
},
DestinationDatasource = new Grafana.Slo.Inputs.SLODestinationDatasourceArgs
{
Uid = "grafanacloud-prom",
},
Labels = new[]
{
new Grafana.Slo.Inputs.SLOLabelArgs
{
Key = "slo",
Value = "terraform",
},
},
Alertings = new[]
{
new Grafana.Slo.Inputs.SLOAlertingArgs
{
Fastburns = new[]
{
new Grafana.Slo.Inputs.SLOAlertingFastburnArgs
{
Annotations = new[]
{
new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
{
Key = "name",
Value = "SLO Burn Rate Very High",
},
new Grafana.Slo.Inputs.SLOAlertingFastburnAnnotationArgs
{
Key = "description",
Value = "Error budget is burning too fast",
},
},
Labels = new[]
{
new Grafana.Slo.Inputs.SLOAlertingFastburnLabelArgs
{
Key = "type",
Value = "slo",
},
},
},
},
Slowburns = new[]
{
new Grafana.Slo.Inputs.SLOAlertingSlowburnArgs
{
Annotations = new[]
{
new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
{
Key = "name",
Value = "SLO Burn Rate High",
},
new Grafana.Slo.Inputs.SLOAlertingSlowburnAnnotationArgs
{
Key = "description",
Value = "Error budget is burning too fast",
},
},
Labels = new[]
{
new Grafana.Slo.Inputs.SLOAlertingSlowburnLabelArgs
{
Key = "type",
Value = "slo",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.slo.SLO;
import com.pulumi.grafana.slo.SLOArgs;
import com.pulumi.grafana.slo.inputs.SLOQueryArgs;
import com.pulumi.grafana.slo.inputs.SLOQueryRatioArgs;
import com.pulumi.grafana.slo.inputs.SLOObjectiveArgs;
import com.pulumi.grafana.slo.inputs.SLODestinationDatasourceArgs;
import com.pulumi.grafana.slo.inputs.SLOLabelArgs;
import com.pulumi.grafana.slo.inputs.SLOAlertingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new SLO("test", SLOArgs.builder()
.name("Complex Resource - Terraform Ratio Query Example")
.description("Complex Resource - Terraform Ratio Query Description")
.queries(SLOQueryArgs.builder()
.ratio(SLOQueryRatioArgs.builder()
.successMetric("kubelet_http_requests_total{status!~\"5..\"}")
.totalMetric("kubelet_http_requests_total")
.groupByLabels(
"job",
"instance")
.build())
.type("ratio")
.build())
.objectives(SLOObjectiveArgs.builder()
.value(0.995)
.window("30d")
.build())
.destinationDatasource(SLODestinationDatasourceArgs.builder()
.uid("grafanacloud-prom")
.build())
.labels(SLOLabelArgs.builder()
.key("slo")
.value("terraform")
.build())
.alertings(SLOAlertingArgs.builder()
.fastburns(SLOAlertingFastburnArgs.builder()
.annotations(
SLOAlertingFastburnAnnotationArgs.builder()
.key("name")
.value("SLO Burn Rate Very High")
.build(),
SLOAlertingFastburnAnnotationArgs.builder()
.key("description")
.value("Error budget is burning too fast")
.build())
.labels(SLOAlertingFastburnLabelArgs.builder()
.key("type")
.value("slo")
.build())
.build())
.slowburns(SLOAlertingSlowburnArgs.builder()
.annotations(
SLOAlertingSlowburnAnnotationArgs.builder()
.key("name")
.value("SLO Burn Rate High")
.build(),
SLOAlertingSlowburnAnnotationArgs.builder()
.key("description")
.value("Error budget is burning too fast")
.build())
.labels(SLOAlertingSlowburnLabelArgs.builder()
.key("type")
.value("slo")
.build())
.build())
.build())
.build());
}
}
resources:
test:
type: grafana:slo:SLO
properties:
name: Complex Resource - Terraform Ratio Query Example
description: Complex Resource - Terraform Ratio Query Description
queries:
- ratio:
successMetric: kubelet_http_requests_total{status!~"5.."}
totalMetric: kubelet_http_requests_total
groupByLabels:
- job
- instance
type: ratio
objectives:
- value: 0.995
window: 30d
destinationDatasource:
uid: grafanacloud-prom
labels:
- key: slo
value: terraform
alertings:
- fastburns:
- annotations:
- key: name
value: SLO Burn Rate Very High
- key: description
value: Error budget is burning too fast
labels:
- key: type
value: slo
slowburns:
- annotations:
- key: name
value: SLO Burn Rate High
- key: description
value: Error budget is burning too fast
labels:
- key: type
value: slo
Create SLO Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SLO(name: string, args: SLOArgs, opts?: CustomResourceOptions);
@overload
def SLO(resource_name: str,
args: SLOArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SLO(resource_name: str,
opts: Optional[ResourceOptions] = None,
alertings: Optional[Sequence[SLOAlertingArgs]] = None,
description: Optional[str] = None,
destination_datasource: Optional[SLODestinationDatasourceArgs] = None,
folder_uid: Optional[str] = None,
labels: Optional[Sequence[SLOLabelArgs]] = None,
name: Optional[str] = None,
objectives: Optional[Sequence[SLOObjectiveArgs]] = None,
queries: Optional[Sequence[SLOQueryArgs]] = None)
func NewSLO(ctx *Context, name string, args SLOArgs, opts ...ResourceOption) (*SLO, error)
public SLO(string name, SLOArgs args, CustomResourceOptions? opts = null)
type: grafana:SLO
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SLOArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SLOArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SLOArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SLOArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SLOArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SLO Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SLO resource accepts the following input properties:
- Description string
- Description is a free-text field that can provide more context to an SLO.
- Objectives
List<Pulumiverse.
Grafana. Inputs. SLOObjective> - Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- Queries
List<Pulumiverse.
Grafana. Inputs. SLOQuery> - Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- Alertings
List<Pulumiverse.
Grafana. Inputs. SLOAlerting> - Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- Destination
Datasource Pulumiverse.Grafana. Inputs. SLODestination Datasource - Destination Datasource sets the datasource defined for an SLO
- Folder
Uid string - UID for the SLO folder
- Labels
List<Pulumiverse.
Grafana. Inputs. SLOLabel> - Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- Name string
- Name should be a short description of your indicator. Consider names like "API Availability"
- Description string
- Description is a free-text field that can provide more context to an SLO.
- Objectives
[]SLOObjective
Args - Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- Queries
[]SLOQuery
Args - Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- Alertings
[]SLOAlerting
Args - Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- Destination
Datasource SLODestinationDatasource Args - Destination Datasource sets the datasource defined for an SLO
- Folder
Uid string - UID for the SLO folder
- Labels
[]SLOLabel
Args - Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- Name string
- Name should be a short description of your indicator. Consider names like "API Availability"
- description String
- Description is a free-text field that can provide more context to an SLO.
- objectives List<SLOObjective>
- Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries List<SLOQuery>
- Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings List<SLOAlerting>
- Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- destination
Datasource SLODestinationDatasource - Destination Datasource sets the datasource defined for an SLO
- folder
Uid String - UID for the SLO folder
- labels List<SLOLabel>
- Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name String
- Name should be a short description of your indicator. Consider names like "API Availability"
- description string
- Description is a free-text field that can provide more context to an SLO.
- objectives SLOObjective[]
- Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries SLOQuery[]
- Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings SLOAlerting[]
- Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- destination
Datasource SLODestinationDatasource - Destination Datasource sets the datasource defined for an SLO
- folder
Uid string - UID for the SLO folder
- labels SLOLabel[]
- Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name string
- Name should be a short description of your indicator. Consider names like "API Availability"
- description str
- Description is a free-text field that can provide more context to an SLO.
- objectives
Sequence[SLOObjective
Args] - Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries
Sequence[SLOQuery
Args] - Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings
Sequence[SLOAlerting
Args] - Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- destination_
datasource SLODestinationDatasource Args - Destination Datasource sets the datasource defined for an SLO
- folder_
uid str - UID for the SLO folder
- labels
Sequence[SLOLabel
Args] - Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name str
- Name should be a short description of your indicator. Consider names like "API Availability"
- description String
- Description is a free-text field that can provide more context to an SLO.
- objectives List<Property Map>
- Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries List<Property Map>
- Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings List<Property Map>
- Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- destination
Datasource Property Map - Destination Datasource sets the datasource defined for an SLO
- folder
Uid String - UID for the SLO folder
- labels List<Property Map>
- Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name String
- Name should be a short description of your indicator. Consider names like "API Availability"
Outputs
All input properties are implicitly available as output properties. Additionally, the SLO resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SLO Resource
Get an existing SLO resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SLOState, opts?: CustomResourceOptions): SLO
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alertings: Optional[Sequence[SLOAlertingArgs]] = None,
description: Optional[str] = None,
destination_datasource: Optional[SLODestinationDatasourceArgs] = None,
folder_uid: Optional[str] = None,
labels: Optional[Sequence[SLOLabelArgs]] = None,
name: Optional[str] = None,
objectives: Optional[Sequence[SLOObjectiveArgs]] = None,
queries: Optional[Sequence[SLOQueryArgs]] = None) -> SLO
func GetSLO(ctx *Context, name string, id IDInput, state *SLOState, opts ...ResourceOption) (*SLO, error)
public static SLO Get(string name, Input<string> id, SLOState? state, CustomResourceOptions? opts = null)
public static SLO get(String name, Output<String> id, SLOState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alertings
List<Pulumiverse.
Grafana. Inputs. SLOAlerting> - Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- Description string
- Description is a free-text field that can provide more context to an SLO.
- Destination
Datasource Pulumiverse.Grafana. Inputs. SLODestination Datasource - Destination Datasource sets the datasource defined for an SLO
- Folder
Uid string - UID for the SLO folder
- Labels
List<Pulumiverse.
Grafana. Inputs. SLOLabel> - Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- Name string
- Name should be a short description of your indicator. Consider names like "API Availability"
- Objectives
List<Pulumiverse.
Grafana. Inputs. SLOObjective> - Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- Queries
List<Pulumiverse.
Grafana. Inputs. SLOQuery> - Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- Alertings
[]SLOAlerting
Args - Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- Description string
- Description is a free-text field that can provide more context to an SLO.
- Destination
Datasource SLODestinationDatasource Args - Destination Datasource sets the datasource defined for an SLO
- Folder
Uid string - UID for the SLO folder
- Labels
[]SLOLabel
Args - Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- Name string
- Name should be a short description of your indicator. Consider names like "API Availability"
- Objectives
[]SLOObjective
Args - Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- Queries
[]SLOQuery
Args - Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings List<SLOAlerting>
- Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- description String
- Description is a free-text field that can provide more context to an SLO.
- destination
Datasource SLODestinationDatasource - Destination Datasource sets the datasource defined for an SLO
- folder
Uid String - UID for the SLO folder
- labels List<SLOLabel>
- Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name String
- Name should be a short description of your indicator. Consider names like "API Availability"
- objectives List<SLOObjective>
- Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries List<SLOQuery>
- Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings SLOAlerting[]
- Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- description string
- Description is a free-text field that can provide more context to an SLO.
- destination
Datasource SLODestinationDatasource - Destination Datasource sets the datasource defined for an SLO
- folder
Uid string - UID for the SLO folder
- labels SLOLabel[]
- Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name string
- Name should be a short description of your indicator. Consider names like "API Availability"
- objectives SLOObjective[]
- Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries SLOQuery[]
- Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings
Sequence[SLOAlerting
Args] - Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- description str
- Description is a free-text field that can provide more context to an SLO.
- destination_
datasource SLODestinationDatasource Args - Destination Datasource sets the datasource defined for an SLO
- folder_
uid str - UID for the SLO folder
- labels
Sequence[SLOLabel
Args] - Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name str
- Name should be a short description of your indicator. Consider names like "API Availability"
- objectives
Sequence[SLOObjective
Args] - Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries
Sequence[SLOQuery
Args] - Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
- alertings List<Property Map>
- Configures the alerting rules that will be generated for each time window associated with the SLO. Grafana SLOs can generate alerts when the short-term error budget burn is very high, the long-term error budget burn rate is high, or when the remaining error budget is below a certain threshold. Annotations and Labels support templating.
- description String
- Description is a free-text field that can provide more context to an SLO.
- destination
Datasource Property Map - Destination Datasource sets the datasource defined for an SLO
- folder
Uid String - UID for the SLO folder
- labels List<Property Map>
- Additional labels that will be attached to all metrics generated from the query. These labels are useful for grouping SLOs in dashboard views that you create by hand. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- name String
- Name should be a short description of your indicator. Consider names like "API Availability"
- objectives List<Property Map>
- Over each rolling time window, the remaining error budget will be calculated, and separate alerts can be generated for each time window based on the SLO burn rate or remaining error budget.
- queries List<Property Map>
- Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
Supporting Types
SLOAlerting, SLOAlertingArgs
- Advanced
Options Pulumiverse.Grafana. Inputs. SLOAlerting Advanced Options - Advanced Options for Alert Rules
- Annotations
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Annotation> - Annotations will be attached to all alerts generated by any of these rules.
- Fastburns
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Fastburn> - Alerting Rules generated for Fast Burn alerts
- Labels
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Label> - Labels will be attached to all alerts generated by any of these rules.
- Slowburns
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Slowburn> - Alerting Rules generated for Slow Burn alerts
- Advanced
Options SLOAlertingAdvanced Options - Advanced Options for Alert Rules
- Annotations
[]SLOAlerting
Annotation - Annotations will be attached to all alerts generated by any of these rules.
- Fastburns
[]SLOAlerting
Fastburn - Alerting Rules generated for Fast Burn alerts
- Labels
[]SLOAlerting
Label - Labels will be attached to all alerts generated by any of these rules.
- Slowburns
[]SLOAlerting
Slowburn - Alerting Rules generated for Slow Burn alerts
- advanced
Options SLOAlertingAdvanced Options - Advanced Options for Alert Rules
- annotations
List<SLOAlerting
Annotation> - Annotations will be attached to all alerts generated by any of these rules.
- fastburns
List<SLOAlerting
Fastburn> - Alerting Rules generated for Fast Burn alerts
- labels
List<SLOAlerting
Label> - Labels will be attached to all alerts generated by any of these rules.
- slowburns
List<SLOAlerting
Slowburn> - Alerting Rules generated for Slow Burn alerts
- advanced
Options SLOAlertingAdvanced Options - Advanced Options for Alert Rules
- annotations
SLOAlerting
Annotation[] - Annotations will be attached to all alerts generated by any of these rules.
- fastburns
SLOAlerting
Fastburn[] - Alerting Rules generated for Fast Burn alerts
- labels
SLOAlerting
Label[] - Labels will be attached to all alerts generated by any of these rules.
- slowburns
SLOAlerting
Slowburn[] - Alerting Rules generated for Slow Burn alerts
- advanced_
options SLOAlertingAdvanced Options - Advanced Options for Alert Rules
- annotations
Sequence[SLOAlerting
Annotation] - Annotations will be attached to all alerts generated by any of these rules.
- fastburns
Sequence[SLOAlerting
Fastburn] - Alerting Rules generated for Fast Burn alerts
- labels
Sequence[SLOAlerting
Label] - Labels will be attached to all alerts generated by any of these rules.
- slowburns
Sequence[SLOAlerting
Slowburn] - Alerting Rules generated for Slow Burn alerts
- advanced
Options Property Map - Advanced Options for Alert Rules
- annotations List<Property Map>
- Annotations will be attached to all alerts generated by any of these rules.
- fastburns List<Property Map>
- Alerting Rules generated for Fast Burn alerts
- labels List<Property Map>
- Labels will be attached to all alerts generated by any of these rules.
- slowburns List<Property Map>
- Alerting Rules generated for Slow Burn alerts
SLOAlertingAdvancedOptions, SLOAlertingAdvancedOptionsArgs
- Min
Failures int - Minimum number of failed events to trigger an alert
- Min
Failures int - Minimum number of failed events to trigger an alert
- min
Failures Integer - Minimum number of failed events to trigger an alert
- min
Failures number - Minimum number of failed events to trigger an alert
- min_
failures int - Minimum number of failed events to trigger an alert
- min
Failures Number - Minimum number of failed events to trigger an alert
SLOAlertingAnnotation, SLOAlertingAnnotationArgs
SLOAlertingFastburn, SLOAlertingFastburnArgs
- Annotations
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Fastburn Annotation> - Annotations to attach only to Fast Burn alerts.
- Labels
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Fastburn Label> - Labels to attach only to Fast Burn alerts.
- Annotations
[]SLOAlerting
Fastburn Annotation - Annotations to attach only to Fast Burn alerts.
- Labels
[]SLOAlerting
Fastburn Label - Labels to attach only to Fast Burn alerts.
- annotations
List<SLOAlerting
Fastburn Annotation> - Annotations to attach only to Fast Burn alerts.
- labels
List<SLOAlerting
Fastburn Label> - Labels to attach only to Fast Burn alerts.
- annotations
SLOAlerting
Fastburn Annotation[] - Annotations to attach only to Fast Burn alerts.
- labels
SLOAlerting
Fastburn Label[] - Labels to attach only to Fast Burn alerts.
- annotations
Sequence[SLOAlerting
Fastburn Annotation] - Annotations to attach only to Fast Burn alerts.
- labels
Sequence[SLOAlerting
Fastburn Label] - Labels to attach only to Fast Burn alerts.
- annotations List<Property Map>
- Annotations to attach only to Fast Burn alerts.
- labels List<Property Map>
- Labels to attach only to Fast Burn alerts.
SLOAlertingFastburnAnnotation, SLOAlertingFastburnAnnotationArgs
SLOAlertingFastburnLabel, SLOAlertingFastburnLabelArgs
SLOAlertingLabel, SLOAlertingLabelArgs
SLOAlertingSlowburn, SLOAlertingSlowburnArgs
- Annotations
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Slowburn Annotation> - Annotations to attach only to Slow Burn alerts.
- Labels
List<Pulumiverse.
Grafana. Inputs. SLOAlerting Slowburn Label> - Labels to attach only to Slow Burn alerts.
- Annotations
[]SLOAlerting
Slowburn Annotation - Annotations to attach only to Slow Burn alerts.
- Labels
[]SLOAlerting
Slowburn Label - Labels to attach only to Slow Burn alerts.
- annotations
List<SLOAlerting
Slowburn Annotation> - Annotations to attach only to Slow Burn alerts.
- labels
List<SLOAlerting
Slowburn Label> - Labels to attach only to Slow Burn alerts.
- annotations
SLOAlerting
Slowburn Annotation[] - Annotations to attach only to Slow Burn alerts.
- labels
SLOAlerting
Slowburn Label[] - Labels to attach only to Slow Burn alerts.
- annotations
Sequence[SLOAlerting
Slowburn Annotation] - Annotations to attach only to Slow Burn alerts.
- labels
Sequence[SLOAlerting
Slowburn Label] - Labels to attach only to Slow Burn alerts.
- annotations List<Property Map>
- Annotations to attach only to Slow Burn alerts.
- labels List<Property Map>
- Labels to attach only to Slow Burn alerts.
SLOAlertingSlowburnAnnotation, SLOAlertingSlowburnAnnotationArgs
SLOAlertingSlowburnLabel, SLOAlertingSlowburnLabelArgs
SLODestinationDatasource, SLODestinationDatasourceArgs
- Uid string
- UID for the Mimir Datasource
- Uid string
- UID for the Mimir Datasource
- uid String
- UID for the Mimir Datasource
- uid string
- UID for the Mimir Datasource
- uid str
- UID for the Mimir Datasource
- uid String
- UID for the Mimir Datasource
SLOLabel, SLOLabelArgs
SLOObjective, SLOObjectiveArgs
SLOQuery, SLOQueryArgs
- Type string
- Query type must be one of: "freeform", "query", "ratio", or "threshold"
- Freeform
Pulumiverse.
Grafana. Inputs. SLOQuery Freeform - Ratio
Pulumiverse.
Grafana. Inputs. SLOQuery Ratio
- Type string
- Query type must be one of: "freeform", "query", "ratio", or "threshold"
- Freeform
SLOQuery
Freeform - Ratio
SLOQuery
Ratio
- type String
- Query type must be one of: "freeform", "query", "ratio", or "threshold"
- freeform
SLOQuery
Freeform - ratio
SLOQuery
Ratio
- type string
- Query type must be one of: "freeform", "query", "ratio", or "threshold"
- freeform
SLOQuery
Freeform - ratio
SLOQuery
Ratio
- type str
- Query type must be one of: "freeform", "query", "ratio", or "threshold"
- freeform
SLOQuery
Freeform - ratio
SLOQuery
Ratio
- type String
- Query type must be one of: "freeform", "query", "ratio", or "threshold"
- freeform Property Map
- ratio Property Map
SLOQueryFreeform, SLOQueryFreeformArgs
- Query string
- Freeform Query Field
- Query string
- Freeform Query Field
- query String
- Freeform Query Field
- query string
- Freeform Query Field
- query str
- Freeform Query Field
- query String
- Freeform Query Field
SLOQueryRatio, SLOQueryRatioArgs
- Success
Metric string - Counter metric for success events (numerator)
- Total
Metric string - Metric for total events (denominator)
- Group
By List<string>Labels - Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- Success
Metric string - Counter metric for success events (numerator)
- Total
Metric string - Metric for total events (denominator)
- Group
By []stringLabels - Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- success
Metric String - Counter metric for success events (numerator)
- total
Metric String - Metric for total events (denominator)
- group
By List<String>Labels - Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- success
Metric string - Counter metric for success events (numerator)
- total
Metric string - Metric for total events (denominator)
- group
By string[]Labels - Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- success_
metric str - Counter metric for success events (numerator)
- total_
metric str - Metric for total events (denominator)
- group_
by_ Sequence[str]labels - Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
- success
Metric String - Counter metric for success events (numerator)
- total
Metric String - Metric for total events (denominator)
- group
By List<String>Labels - Defines Group By Labels used for per-label alerting. These appear as variables on SLO dashboards to enable filtering and aggregation. Labels must adhere to Prometheus label name schema - "^[a-zA-Z*][a-zA-Z0-9*]*$"
Import
$ pulumi import grafana:index/sLO:SLO name "{{ uuid }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.