published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
A service-level objective that tracks the ratio of good to total events produced by an SLI over a configured time window, with optional multi-window burn-rate alerting.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var payments = new Pulumi.Team("payments", new()
{
Name = "Payments",
});
var blackhole = new Pulumi.BlackholeAlertNotifier("blackhole", new()
{
Name = "Blackhole",
});
var np = new Pulumi.NotificationPolicy("np", new()
{
Name = "SLO policy",
TeamId = payments.Id,
Routes = new[]
{
new Pulumi.Inputs.NotificationPolicyRouteArgs
{
Severity = "warn",
Notifiers = new[]
{
blackhole.Id,
},
},
},
});
var collection = new Pulumi.Collection("collection", new()
{
Name = "Payments",
TeamId = payments.Id,
});
var requestSuccess = new Pulumi.SLO("requestSuccess", new()
{
Name = "payments request success",
CollectionId = collection.Id,
NotificationPolicyId = np.Id,
Definition = new Pulumi.Inputs.SLODefinitionArgs
{
Objective = 99.95,
TimeWindow = new Pulumi.Inputs.SLODefinitionTimeWindowArgs
{
Duration = "28d",
},
EnableBurnRateAlerting = true,
},
Sli = new Pulumi.Inputs.SLOSliArgs
{
CustomIndicator = new Pulumi.Inputs.SLOSliCustomIndicatorArgs
{
BadQueryTemplate = "sum(rate(http_request_duration_seconds_count{error=\"true\"}[{{ .Window }}]))",
TotalQueryTemplate = "sum(rate(http_request_duration_seconds_count[{{ .Window }}]))",
},
},
});
});
package main
import (
"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
payments, err := chronosphere.NewTeam(ctx, "payments", &chronosphere.TeamArgs{
Name: pulumi.String("Payments"),
})
if err != nil {
return err
}
blackhole, err := chronosphere.NewBlackholeAlertNotifier(ctx, "blackhole", &chronosphere.BlackholeAlertNotifierArgs{
Name: pulumi.String("Blackhole"),
})
if err != nil {
return err
}
np, err := chronosphere.NewNotificationPolicy(ctx, "np", &chronosphere.NotificationPolicyArgs{
Name: pulumi.String("SLO policy"),
TeamId: payments.ID(),
Routes: chronosphere.NotificationPolicyRouteArray{
&chronosphere.NotificationPolicyRouteArgs{
Severity: pulumi.String("warn"),
Notifiers: pulumi.StringArray{
blackhole.ID(),
},
},
},
})
if err != nil {
return err
}
collection, err := chronosphere.NewCollection(ctx, "collection", &chronosphere.CollectionArgs{
Name: pulumi.String("Payments"),
TeamId: payments.ID(),
})
if err != nil {
return err
}
_, err = chronosphere.NewSLO(ctx, "requestSuccess", &chronosphere.SLOArgs{
Name: pulumi.String("payments request success"),
CollectionId: collection.ID(),
NotificationPolicyId: np.ID(),
Definition: &chronosphere.SLODefinitionArgs{
Objective: pulumi.Float64(99.95),
TimeWindow: &chronosphere.SLODefinitionTimeWindowArgs{
Duration: pulumi.String("28d"),
},
EnableBurnRateAlerting: pulumi.Bool(true),
},
Sli: &chronosphere.SLOSliArgs{
CustomIndicator: &chronosphere.SLOSliCustomIndicatorArgs{
BadQueryTemplate: pulumi.String("sum(rate(http_request_duration_seconds_count{error=\"true\"}[{{ .Window }}]))"),
TotalQueryTemplate: pulumi.String("sum(rate(http_request_duration_seconds_count[{{ .Window }}]))"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.chronosphere.Team;
import com.pulumi.chronosphere.TeamArgs;
import com.pulumi.chronosphere.BlackholeAlertNotifier;
import com.pulumi.chronosphere.BlackholeAlertNotifierArgs;
import com.pulumi.chronosphere.NotificationPolicy;
import com.pulumi.chronosphere.NotificationPolicyArgs;
import com.pulumi.chronosphere.inputs.NotificationPolicyRouteArgs;
import com.pulumi.chronosphere.Collection;
import com.pulumi.chronosphere.CollectionArgs;
import com.pulumi.chronosphere.SLO;
import com.pulumi.chronosphere.SLOArgs;
import com.pulumi.chronosphere.inputs.SLODefinitionArgs;
import com.pulumi.chronosphere.inputs.SLODefinitionTimeWindowArgs;
import com.pulumi.chronosphere.inputs.SLOSliArgs;
import com.pulumi.chronosphere.inputs.SLOSliCustomIndicatorArgs;
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 payments = new Team("payments", TeamArgs.builder()
.name("Payments")
.build());
var blackhole = new BlackholeAlertNotifier("blackhole", BlackholeAlertNotifierArgs.builder()
.name("Blackhole")
.build());
var np = new NotificationPolicy("np", NotificationPolicyArgs.builder()
.name("SLO policy")
.teamId(payments.id())
.routes(NotificationPolicyRouteArgs.builder()
.severity("warn")
.notifiers(blackhole.id())
.build())
.build());
var collection = new Collection("collection", CollectionArgs.builder()
.name("Payments")
.teamId(payments.id())
.build());
var requestSuccess = new SLO("requestSuccess", SLOArgs.builder()
.name("payments request success")
.collectionId(collection.id())
.notificationPolicyId(np.id())
.definition(SLODefinitionArgs.builder()
.objective(99.95)
.timeWindow(SLODefinitionTimeWindowArgs.builder()
.duration("28d")
.build())
.enableBurnRateAlerting(true)
.build())
.sli(SLOSliArgs.builder()
.customIndicator(SLOSliCustomIndicatorArgs.builder()
.badQueryTemplate("sum(rate(http_request_duration_seconds_count{error=\"true\"}[{{ .Window }}]))")
.totalQueryTemplate("sum(rate(http_request_duration_seconds_count[{{ .Window }}]))")
.build())
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const payments = new chronosphere.Team("payments", {name: "Payments"});
const blackhole = new chronosphere.BlackholeAlertNotifier("blackhole", {name: "Blackhole"});
const np = new chronosphere.NotificationPolicy("np", {
name: "SLO policy",
teamId: payments.id,
routes: [{
severity: "warn",
notifiers: [blackhole.id],
}],
});
const collection = new chronosphere.Collection("collection", {
name: "Payments",
teamId: payments.id,
});
const requestSuccess = new chronosphere.SLO("requestSuccess", {
name: "payments request success",
collectionId: collection.id,
notificationPolicyId: np.id,
definition: {
objective: 99.95,
timeWindow: {
duration: "28d",
},
enableBurnRateAlerting: true,
},
sli: {
customIndicator: {
badQueryTemplate: "sum(rate(http_request_duration_seconds_count{error=\"true\"}[{{ .Window }}]))",
totalQueryTemplate: "sum(rate(http_request_duration_seconds_count[{{ .Window }}]))",
},
},
});
import pulumi
import pulumi_chronosphere as chronosphere
payments = chronosphere.Team("payments", name="Payments")
blackhole = chronosphere.BlackholeAlertNotifier("blackhole", name="Blackhole")
np = chronosphere.NotificationPolicy("np",
name="SLO policy",
team_id=payments.id,
routes=[chronosphere.NotificationPolicyRouteArgs(
severity="warn",
notifiers=[blackhole.id],
)])
collection = chronosphere.Collection("collection",
name="Payments",
team_id=payments.id)
request_success = chronosphere.SLO("requestSuccess",
name="payments request success",
collection_id=collection.id,
notification_policy_id=np.id,
definition=chronosphere.SLODefinitionArgs(
objective=99.95,
time_window=chronosphere.SLODefinitionTimeWindowArgs(
duration="28d",
),
enable_burn_rate_alerting=True,
),
sli=chronosphere.SLOSliArgs(
custom_indicator=chronosphere.SLOSliCustomIndicatorArgs(
bad_query_template="sum(rate(http_request_duration_seconds_count{error=\"true\"}[{{ .Window }}]))",
total_query_template="sum(rate(http_request_duration_seconds_count[{{ .Window }}]))",
),
))
resources:
payments:
type: chronosphere:Team
properties:
name: Payments
blackhole:
type: chronosphere:BlackholeAlertNotifier
properties:
name: Blackhole
np:
type: chronosphere:NotificationPolicy
properties:
name: SLO policy
teamId: ${payments.id}
routes:
- severity: warn
notifiers:
- ${blackhole.id}
collection:
type: chronosphere:Collection
properties:
name: Payments
teamId: ${payments.id}
requestSuccess:
type: chronosphere:SLO
properties:
name: payments request success
collectionId: ${collection.id}
notificationPolicyId: ${np.id}
definition:
objective: 99.95
timeWindow:
duration: 28d
enableBurnRateAlerting: true
sli:
customIndicator:
badQueryTemplate: sum(rate(http_request_duration_seconds_count{error="true"}[{{ .Window }}]))
totalQueryTemplate: sum(rate(http_request_duration_seconds_count[{{ .Window }}]))
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,
collection_id: Optional[str] = None,
definition: Optional[SLODefinitionArgs] = None,
name: Optional[str] = None,
sli: Optional[SLOSliArgs] = None,
annotations: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
notification_policy_id: Optional[str] = None,
signal_grouping: Optional[SLOSignalGroupingArgs] = None,
slug: Optional[str] = None)func NewSLO(ctx *Context, name string, args SLOArgs, opts ...ResourceOption) (*SLO, error)public SLO(string name, SLOArgs args, CustomResourceOptions? opts = null)type: chronosphere:SLO
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "chronosphere_slo" "name" {
# resource properties
}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.
Constructor example
The following reference example uses placeholder values for all input properties.
var sloResource = new Pulumi.SLO("sloResource", new()
{
CollectionId = "string",
Definition = new Pulumi.Inputs.SLODefinitionArgs
{
Objective = 0,
BurnRateAlertingConfigs = new[]
{
new Pulumi.Inputs.SLODefinitionBurnRateAlertingConfigArgs
{
Budget = 0,
Severity = "string",
Window = "string",
Labels =
{
{ "string", "string" },
},
},
},
EnableBurnRateAlerting = false,
TimeWindow = new Pulumi.Inputs.SLODefinitionTimeWindowArgs
{
Duration = "string",
},
},
Name = "string",
Sli = new Pulumi.Inputs.SLOSliArgs
{
AdditionalPromqlFilters = new[]
{
new Pulumi.Inputs.SLOSliAdditionalPromqlFilterArgs
{
Name = "string",
Type = "string",
Value = "string",
},
},
CustomDimensionLabels = new[]
{
"string",
},
CustomIndicator = new Pulumi.Inputs.SLOSliCustomIndicatorArgs
{
TotalQueryTemplate = "string",
BadQueryTemplate = "string",
GoodQueryTemplate = "string",
},
CustomTimesliceIndicator = new Pulumi.Inputs.SLOSliCustomTimesliceIndicatorArgs
{
Condition = new Pulumi.Inputs.SLOSliCustomTimesliceIndicatorConditionArgs
{
Op = "string",
Value = 0,
},
QueryTemplate = "string",
TimesliceSize = "string",
},
},
Annotations =
{
{ "string", "string" },
},
Description = "string",
Labels =
{
{ "string", "string" },
},
NotificationPolicyId = "string",
SignalGrouping = new Pulumi.Inputs.SLOSignalGroupingArgs
{
LabelNames = new[]
{
"string",
},
SignalPerSeries = false,
},
Slug = "string",
});
example, err := chronosphere.NewSLO(ctx, "sloResource", &chronosphere.SLOArgs{
CollectionId: pulumi.String("string"),
Definition: &chronosphere.SLODefinitionArgs{
Objective: pulumi.Float64(0),
BurnRateAlertingConfigs: chronosphere.SLODefinitionBurnRateAlertingConfigArray{
&chronosphere.SLODefinitionBurnRateAlertingConfigArgs{
Budget: pulumi.Float64(0),
Severity: pulumi.String("string"),
Window: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
EnableBurnRateAlerting: pulumi.Bool(false),
TimeWindow: &chronosphere.SLODefinitionTimeWindowArgs{
Duration: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Sli: &chronosphere.SLOSliArgs{
AdditionalPromqlFilters: chronosphere.SLOSliAdditionalPromqlFilterArray{
&chronosphere.SLOSliAdditionalPromqlFilterArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
CustomDimensionLabels: pulumi.StringArray{
pulumi.String("string"),
},
CustomIndicator: &chronosphere.SLOSliCustomIndicatorArgs{
TotalQueryTemplate: pulumi.String("string"),
BadQueryTemplate: pulumi.String("string"),
GoodQueryTemplate: pulumi.String("string"),
},
CustomTimesliceIndicator: &chronosphere.SLOSliCustomTimesliceIndicatorArgs{
Condition: &chronosphere.SLOSliCustomTimesliceIndicatorConditionArgs{
Op: pulumi.String("string"),
Value: pulumi.Float64(0),
},
QueryTemplate: pulumi.String("string"),
TimesliceSize: pulumi.String("string"),
},
},
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
NotificationPolicyId: pulumi.String("string"),
SignalGrouping: &chronosphere.SLOSignalGroupingArgs{
LabelNames: pulumi.StringArray{
pulumi.String("string"),
},
SignalPerSeries: pulumi.Bool(false),
},
Slug: pulumi.String("string"),
})
resource "chronosphere_slo" "sloResource" {
collection_id = "string"
definition = {
objective = 0
burn_rate_alerting_configs = [{
"budget" = 0
"severity" = "string"
"window" = "string"
"labels" = {
"string" = "string"
}
}]
enable_burn_rate_alerting = false
time_window = {
duration = "string"
}
}
name = "string"
sli = {
additional_promql_filters = [{
"name" = "string"
"type" = "string"
"value" = "string"
}]
custom_dimension_labels = ["string"]
custom_indicator = {
total_query_template = "string"
bad_query_template = "string"
good_query_template = "string"
}
custom_timeslice_indicator = {
condition = {
op = "string"
value = 0
}
query_template = "string"
timeslice_size = "string"
}
}
annotations = {
"string" = "string"
}
description = "string"
labels = {
"string" = "string"
}
notification_policy_id = "string"
signal_grouping = {
label_names = ["string"]
signal_per_series = false
}
slug = "string"
}
var sloResource = new SLO("sloResource", SLOArgs.builder()
.collectionId("string")
.definition(SLODefinitionArgs.builder()
.objective(0.0)
.burnRateAlertingConfigs(SLODefinitionBurnRateAlertingConfigArgs.builder()
.budget(0.0)
.severity("string")
.window("string")
.labels(Map.of("string", "string"))
.build())
.enableBurnRateAlerting(false)
.timeWindow(SLODefinitionTimeWindowArgs.builder()
.duration("string")
.build())
.build())
.name("string")
.sli(SLOSliArgs.builder()
.additionalPromqlFilters(SLOSliAdditionalPromqlFilterArgs.builder()
.name("string")
.type("string")
.value("string")
.build())
.customDimensionLabels("string")
.customIndicator(SLOSliCustomIndicatorArgs.builder()
.totalQueryTemplate("string")
.badQueryTemplate("string")
.goodQueryTemplate("string")
.build())
.customTimesliceIndicator(SLOSliCustomTimesliceIndicatorArgs.builder()
.condition(SLOSliCustomTimesliceIndicatorConditionArgs.builder()
.op("string")
.value(0.0)
.build())
.queryTemplate("string")
.timesliceSize("string")
.build())
.build())
.annotations(Map.of("string", "string"))
.description("string")
.labels(Map.of("string", "string"))
.notificationPolicyId("string")
.signalGrouping(SLOSignalGroupingArgs.builder()
.labelNames("string")
.signalPerSeries(false)
.build())
.slug("string")
.build());
slo_resource = chronosphere.SLO("sloResource",
collection_id="string",
definition={
"objective": float(0),
"burn_rate_alerting_configs": [{
"budget": float(0),
"severity": "string",
"window": "string",
"labels": {
"string": "string",
},
}],
"enable_burn_rate_alerting": False,
"time_window": {
"duration": "string",
},
},
name="string",
sli={
"additional_promql_filters": [{
"name": "string",
"type": "string",
"value": "string",
}],
"custom_dimension_labels": ["string"],
"custom_indicator": {
"total_query_template": "string",
"bad_query_template": "string",
"good_query_template": "string",
},
"custom_timeslice_indicator": {
"condition": {
"op": "string",
"value": float(0),
},
"query_template": "string",
"timeslice_size": "string",
},
},
annotations={
"string": "string",
},
description="string",
labels={
"string": "string",
},
notification_policy_id="string",
signal_grouping={
"label_names": ["string"],
"signal_per_series": False,
},
slug="string")
const sloResource = new chronosphere.SLO("sloResource", {
collectionId: "string",
definition: {
objective: 0,
burnRateAlertingConfigs: [{
budget: 0,
severity: "string",
window: "string",
labels: {
string: "string",
},
}],
enableBurnRateAlerting: false,
timeWindow: {
duration: "string",
},
},
name: "string",
sli: {
additionalPromqlFilters: [{
name: "string",
type: "string",
value: "string",
}],
customDimensionLabels: ["string"],
customIndicator: {
totalQueryTemplate: "string",
badQueryTemplate: "string",
goodQueryTemplate: "string",
},
customTimesliceIndicator: {
condition: {
op: "string",
value: 0,
},
queryTemplate: "string",
timesliceSize: "string",
},
},
annotations: {
string: "string",
},
description: "string",
labels: {
string: "string",
},
notificationPolicyId: "string",
signalGrouping: {
labelNames: ["string"],
signalPerSeries: false,
},
slug: "string",
});
type: chronosphere:SLO
properties:
annotations:
string: string
collectionId: string
definition:
burnRateAlertingConfigs:
- budget: 0
labels:
string: string
severity: string
window: string
enableBurnRateAlerting: false
objective: 0
timeWindow:
duration: string
description: string
labels:
string: string
name: string
notificationPolicyId: string
signalGrouping:
labelNames:
- string
signalPerSeries: false
sli:
additionalPromqlFilters:
- name: string
type: string
value: string
customDimensionLabels:
- string
customIndicator:
badQueryTemplate: string
goodQueryTemplate: string
totalQueryTemplate: string
customTimesliceIndicator:
condition:
op: string
value: 0
queryTemplate: string
timesliceSize: string
slug: string
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:
- Collection
Id string - ID of the collection that owns this SLO.
- Definition
Chronosphere.
Pulumi. Inputs. SLODefinition - SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- Name string
- Prometheus label name to match.
- Sli
Chronosphere.
Pulumi. Inputs. SLOSli - Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- Annotations Dictionary<string, string>
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- Description string
- Free-form description of the SLO.
- Labels Dictionary<string, string>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- Notification
Policy stringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- Signal
Grouping Chronosphere.Pulumi. Inputs. SLOSignal Grouping - Controls how individual time series are grouped into signals for alerting purposes.
- Slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- Collection
Id string - ID of the collection that owns this SLO.
- Definition
SLODefinition
Args - SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- Name string
- Prometheus label name to match.
- Sli
SLOSli
Args - Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- Annotations map[string]string
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- Description string
- Free-form description of the SLO.
- Labels map[string]string
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- Notification
Policy stringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- Signal
Grouping SLOSignalGrouping Args - Controls how individual time series are grouped into signals for alerting purposes.
- Slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- collection_
id string - ID of the collection that owns this SLO.
- definition object
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- name string
- Prometheus label name to match.
- sli object
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- annotations map(string)
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- description string
- Free-form description of the SLO.
- labels map(string)
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- notification_
policy_ stringid - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal_
grouping object - Controls how individual time series are grouped into signals for alerting purposes.
- slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- collection
Id String - ID of the collection that owns this SLO.
- definition SLODefinition
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- name String
- Prometheus label name to match.
- sli SLOSli
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- annotations Map<String,String>
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- description String
- Free-form description of the SLO.
- labels Map<String,String>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- notification
Policy StringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal
Grouping SLOSignalGrouping - Controls how individual time series are grouped into signals for alerting purposes.
- slug String
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- collection
Id string - ID of the collection that owns this SLO.
- definition SLODefinition
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- name string
- Prometheus label name to match.
- sli SLOSli
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- annotations {[key: string]: string}
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- description string
- Free-form description of the SLO.
- labels {[key: string]: string}
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- notification
Policy stringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal
Grouping SLOSignalGrouping - Controls how individual time series are grouped into signals for alerting purposes.
- slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- collection_
id str - ID of the collection that owns this SLO.
- definition
SLODefinition
Args - SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- name str
- Prometheus label name to match.
- sli
SLOSli
Args - Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- annotations Mapping[str, str]
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- description str
- Free-form description of the SLO.
- labels Mapping[str, str]
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- notification_
policy_ strid - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal_
grouping SLOSignalGrouping Args - Controls how individual time series are grouped into signals for alerting purposes.
- slug str
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- collection
Id String - ID of the collection that owns this SLO.
- definition Property Map
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- name String
- Prometheus label name to match.
- sli Property Map
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- annotations Map<String>
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- description String
- Free-form description of the SLO.
- labels Map<String>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- notification
Policy StringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal
Grouping Property Map - Controls how individual time series are grouped into signals for alerting purposes.
- slug String
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
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 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,
annotations: Optional[Mapping[str, str]] = None,
collection_id: Optional[str] = None,
definition: Optional[SLODefinitionArgs] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
notification_policy_id: Optional[str] = None,
signal_grouping: Optional[SLOSignalGroupingArgs] = None,
sli: Optional[SLOSliArgs] = None,
slug: Optional[str] = None) -> SLOfunc 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)resources: _: type: chronosphere:SLO get: id: ${id}import {
to = chronosphere_slo.example
id = "${id}"
}
- 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.
- Annotations Dictionary<string, string>
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- Collection
Id string - ID of the collection that owns this SLO.
- Definition
Chronosphere.
Pulumi. Inputs. SLODefinition - SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- Description string
- Free-form description of the SLO.
- Labels Dictionary<string, string>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- Name string
- Prometheus label name to match.
- Notification
Policy stringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- Signal
Grouping Chronosphere.Pulumi. Inputs. SLOSignal Grouping - Controls how individual time series are grouped into signals for alerting purposes.
- Sli
Chronosphere.
Pulumi. Inputs. SLOSli - Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- Slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- Annotations map[string]string
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- Collection
Id string - ID of the collection that owns this SLO.
- Definition
SLODefinition
Args - SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- Description string
- Free-form description of the SLO.
- Labels map[string]string
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- Name string
- Prometheus label name to match.
- Notification
Policy stringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- Signal
Grouping SLOSignalGrouping Args - Controls how individual time series are grouped into signals for alerting purposes.
- Sli
SLOSli
Args - Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- Slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- annotations map(string)
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- collection_
id string - ID of the collection that owns this SLO.
- definition object
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- description string
- Free-form description of the SLO.
- labels map(string)
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- name string
- Prometheus label name to match.
- notification_
policy_ stringid - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal_
grouping object - Controls how individual time series are grouped into signals for alerting purposes.
- sli object
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- annotations Map<String,String>
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- collection
Id String - ID of the collection that owns this SLO.
- definition SLODefinition
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- description String
- Free-form description of the SLO.
- labels Map<String,String>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- name String
- Prometheus label name to match.
- notification
Policy StringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal
Grouping SLOSignalGrouping - Controls how individual time series are grouped into signals for alerting purposes.
- sli SLOSli
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- slug String
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- annotations {[key: string]: string}
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- collection
Id string - ID of the collection that owns this SLO.
- definition SLODefinition
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- description string
- Free-form description of the SLO.
- labels {[key: string]: string}
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- name string
- Prometheus label name to match.
- notification
Policy stringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal
Grouping SLOSignalGrouping - Controls how individual time series are grouped into signals for alerting purposes.
- sli SLOSli
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- slug string
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- annotations Mapping[str, str]
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- collection_
id str - ID of the collection that owns this SLO.
- definition
SLODefinition
Args - SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- description str
- Free-form description of the SLO.
- labels Mapping[str, str]
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- name str
- Prometheus label name to match.
- notification_
policy_ strid - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal_
grouping SLOSignalGrouping Args - Controls how individual time series are grouped into signals for alerting purposes.
- sli
SLOSli
Args - Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- slug str
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
- annotations Map<String>
- Free-form key/value pairs included in notifications generated by this SLO. Templated against signal labels.
- collection
Id String - ID of the collection that owns this SLO.
- definition Property Map
- SLO definition specifying the objective, time window, and burn-rate alerting configuration.
- description String
- Free-form description of the SLO.
- labels Map<String>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- name String
- Prometheus label name to match.
- notification
Policy StringId - ID of the notification policy used to route burn-rate alerts from this SLO. If omitted, the policy of the parent collection applies. Required if burn-rate alerting is enabled and the collection has no default policy.
- signal
Grouping Property Map - Controls how individual time series are grouped into signals for alerting purposes.
- sli Property Map
- Service-level indicator (SLI) definition that produces the good/bad event ratio measured by this SLO.
- slug String
- Stable identifier for the SLO. Generated from
nameif omitted. Immutable after creation.
Supporting Types
SLODefinition, SLODefinitionArgs
- Objective double
- Target SLO percentage representing the desired availability (e.g.
99.9). - Burn
Rate List<Chronosphere.Alerting Configs Pulumi. Inputs. SLODefinition Burn Rate Alerting Config> - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - Enable
Burn boolRate Alerting - Whether burn-rate alerting is enabled for this SLO.
- Time
Window Chronosphere.Pulumi. Inputs. SLODefinition Time Window - Rolling time window over which the SLO objective is evaluated.
- Objective float64
- Target SLO percentage representing the desired availability (e.g.
99.9). - Burn
Rate []SLODefinitionAlerting Configs Burn Rate Alerting Config - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - Enable
Burn boolRate Alerting - Whether burn-rate alerting is enabled for this SLO.
- Time
Window SLODefinitionTime Window - Rolling time window over which the SLO objective is evaluated.
- objective number
- Target SLO percentage representing the desired availability (e.g.
99.9). - burn_
rate_ list(object)alerting_ configs - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - enable_
burn_ boolrate_ alerting - Whether burn-rate alerting is enabled for this SLO.
- time_
window object - Rolling time window over which the SLO objective is evaluated.
- objective Double
- Target SLO percentage representing the desired availability (e.g.
99.9). - burn
Rate List<SLODefinitionAlerting Configs Burn Rate Alerting Config> - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - enable
Burn BooleanRate Alerting - Whether burn-rate alerting is enabled for this SLO.
- time
Window SLODefinitionTime Window - Rolling time window over which the SLO objective is evaluated.
- objective number
- Target SLO percentage representing the desired availability (e.g.
99.9). - burn
Rate SLODefinitionAlerting Configs Burn Rate Alerting Config[] - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - enable
Burn booleanRate Alerting - Whether burn-rate alerting is enabled for this SLO.
- time
Window SLODefinitionTime Window - Rolling time window over which the SLO objective is evaluated.
- objective float
- Target SLO percentage representing the desired availability (e.g.
99.9). - burn_
rate_ Sequence[SLODefinitionalerting_ configs Burn Rate Alerting Config] - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - enable_
burn_ boolrate_ alerting - Whether burn-rate alerting is enabled for this SLO.
- time_
window SLODefinitionTime Window - Rolling time window over which the SLO objective is evaluated.
- objective Number
- Target SLO percentage representing the desired availability (e.g.
99.9). - burn
Rate List<Property Map>Alerting Configs - Custom burn-rate alert definitions. If omitted, the system default burn rates are used. Only takes effect when
enable_burn_rate_alertingis true. - enable
Burn BooleanRate Alerting - Whether burn-rate alerting is enabled for this SLO.
- time
Window Property Map - Rolling time window over which the SLO objective is evaluated.
SLODefinitionBurnRateAlertingConfig, SLODefinitionBurnRateAlertingConfigArgs
- Budget double
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - Severity string
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - Window string
- Time window for the burn-rate calculation (e.g.
1h,6h). - Labels Dictionary<string, string>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- Budget float64
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - Severity string
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - Window string
- Time window for the burn-rate calculation (e.g.
1h,6h). - Labels map[string]string
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- budget number
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - severity string
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - window string
- Time window for the burn-rate calculation (e.g.
1h,6h). - labels map(string)
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- budget Double
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - severity String
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - window String
- Time window for the burn-rate calculation (e.g.
1h,6h). - labels Map<String,String>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- budget number
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - severity string
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - window string
- Time window for the burn-rate calculation (e.g.
1h,6h). - labels {[key: string]: string}
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- budget float
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - severity str
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - window str
- Time window for the burn-rate calculation (e.g.
1h,6h). - labels Mapping[str, str]
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
- budget Number
- Percentage of the error budget that can be consumed during
windowbefore the alert fires. Must be between 0.0 and 100.0 exclusive. - severity String
- Severity assigned when the burn rate fires. Must be
criticalorwarn. - window String
- Time window for the burn-rate calculation (e.g.
1h,6h). - labels Map<String>
- Additional labels attached when this burn-rate alert fires. Can be used by notification policies to route different burn rates to different destinations.
SLODefinitionTimeWindow, SLODefinitionTimeWindowArgs
- Duration string
- Length of the evaluation window (e.g.
28d,24h).
- Duration string
- Length of the evaluation window (e.g.
28d,24h).
- duration string
- Length of the evaluation window (e.g.
28d,24h).
- duration String
- Length of the evaluation window (e.g.
28d,24h).
- duration string
- Length of the evaluation window (e.g.
28d,24h).
- duration str
- Length of the evaluation window (e.g.
28d,24h).
- duration String
- Length of the evaluation window (e.g.
28d,24h).
SLOSignalGrouping, SLOSignalGroupingArgs
- Label
Names List<string> - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- Signal
Per boolSeries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
- Label
Names []string - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- Signal
Per boolSeries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
- label_
names list(string) - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- signal_
per_ boolseries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
- label
Names List<String> - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- signal
Per BooleanSeries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
- label
Names string[] - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- signal
Per booleanSeries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
- label_
names Sequence[str] - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- signal_
per_ boolseries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
- label
Names List<String> - Labels to group by. Series sharing the same values for these labels produce one signal. Defaults to no grouping (one signal per series).
- signal
Per BooleanSeries - If true, treat each individual series as its own signal. Mutually exclusive with
label_names.
SLOSli, SLOSliArgs
- Additional
Promql List<Chronosphere.Filters Pulumi. Inputs. SLOSli Additional Promql Filter> - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - Custom
Dimension List<string>Labels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - Custom
Indicator Chronosphere.Pulumi. Inputs. SLOSli Custom Indicator - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - Custom
Timeslice Chronosphere.Indicator Pulumi. Inputs. SLOSli Custom Timeslice Indicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
- Additional
Promql []SLOSliFilters Additional Promql Filter - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - Custom
Dimension []stringLabels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - Custom
Indicator SLOSliCustom Indicator - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - Custom
Timeslice SLOSliIndicator Custom Timeslice Indicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
- additional_
promql_ list(object)filters - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - custom_
dimension_ list(string)labels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - custom_
indicator object - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - custom_
timeslice_ objectindicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
- additional
Promql List<SLOSliFilters Additional Promql Filter> - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - custom
Dimension List<String>Labels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - custom
Indicator SLOSliCustom Indicator - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - custom
Timeslice SLOSliIndicator Custom Timeslice Indicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
- additional
Promql SLOSliFilters Additional Promql Filter[] - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - custom
Dimension string[]Labels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - custom
Indicator SLOSliCustom Indicator - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - custom
Timeslice SLOSliIndicator Custom Timeslice Indicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
- additional_
promql_ Sequence[SLOSlifilters Additional Promql Filter] - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - custom_
dimension_ Sequence[str]labels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - custom_
indicator SLOSliCustom Indicator - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - custom_
timeslice_ SLOSliindicator Custom Timeslice Indicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
- additional
Promql List<Property Map>Filters - Additional PromQL label matchers applied to SLI queries via the
{{.AdditionalFilters}}template variable. Used to narrow the metrics scope. - custom
Dimension List<String>Labels - Additional labels exported from the underlying queries to group the error budget by. Available in PromQL templates via
{{.GroupBy}}. - custom
Indicator Property Map - Error-ratio SLI defined by good/bad/total PromQL query templates. Mutually exclusive with
custom_timeslice_indicator. - custom
Timeslice Property MapIndicator - Time-slice SLI that evaluates a PromQL query over fixed time slices against a threshold condition. Mutually exclusive with
custom_indicator.
SLOSliAdditionalPromqlFilter, SLOSliAdditionalPromqlFilterArgs
SLOSliCustomIndicator, SLOSliCustomIndicatorArgs
- Total
Query stringTemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- Bad
Query stringTemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - Good
Query stringTemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
- Total
Query stringTemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- Bad
Query stringTemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - Good
Query stringTemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
- total_
query_ stringtemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- bad_
query_ stringtemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - good_
query_ stringtemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
- total
Query StringTemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- bad
Query StringTemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - good
Query StringTemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
- total
Query stringTemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- bad
Query stringTemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - good
Query stringTemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
- total_
query_ strtemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- bad_
query_ strtemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - good_
query_ strtemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
- total
Query StringTemplate - PromQL query template measuring the total count of events. Required for error-ratio SLOs.
- bad
Query StringTemplate - PromQL query template measuring the count of bad events. Mutually exclusive with
good_query_template. - good
Query StringTemplate - PromQL query template measuring the count of good events. Mutually exclusive with
bad_query_template.
SLOSliCustomTimesliceIndicator, SLOSliCustomTimesliceIndicatorArgs
- Condition
Chronosphere.
Pulumi. Inputs. SLOSli Custom Timeslice Indicator Condition - Condition used to classify each time slice as good or bad based on the query result.
- Query
Template string - PromQL query template evaluated against each time slice.
- Timeslice
Size string - Size of each time slice evaluated by the query (e.g.
1m,5m).
- Condition
SLOSli
Custom Timeslice Indicator Condition - Condition used to classify each time slice as good or bad based on the query result.
- Query
Template string - PromQL query template evaluated against each time slice.
- Timeslice
Size string - Size of each time slice evaluated by the query (e.g.
1m,5m).
- condition object
- Condition used to classify each time slice as good or bad based on the query result.
- query_
template string - PromQL query template evaluated against each time slice.
- timeslice_
size string - Size of each time slice evaluated by the query (e.g.
1m,5m).
- condition
SLOSli
Custom Timeslice Indicator Condition - Condition used to classify each time slice as good or bad based on the query result.
- query
Template String - PromQL query template evaluated against each time slice.
- timeslice
Size String - Size of each time slice evaluated by the query (e.g.
1m,5m).
- condition
SLOSli
Custom Timeslice Indicator Condition - Condition used to classify each time slice as good or bad based on the query result.
- query
Template string - PromQL query template evaluated against each time slice.
- timeslice
Size string - Size of each time slice evaluated by the query (e.g.
1m,5m).
- condition
SLOSli
Custom Timeslice Indicator Condition - Condition used to classify each time slice as good or bad based on the query result.
- query_
template str - PromQL query template evaluated against each time slice.
- timeslice_
size str - Size of each time slice evaluated by the query (e.g.
1m,5m).
- condition Property Map
- Condition used to classify each time slice as good or bad based on the query result.
- query
Template String - PromQL query template evaluated against each time slice.
- timeslice
Size String - Size of each time slice evaluated by the query (e.g.
1m,5m).
SLOSliCustomTimesliceIndicatorCondition, SLOSliCustomTimesliceIndicatorConditionArgs
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
published on Friday, Jun 5, 2026 by Chronosphere