published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
A rule that extracts a histogram metric from spans matching a trace filter, with configurable group-by keys and histogram buckets.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var paymentsLatency = new Pulumi.TraceMetricsRule("paymentsLatency", new()
{
GroupBies = new[]
{
"operation",
},
HistogramBucketsSeconds = new[]
{
0.1,
0.5,
1,
2,
5,
},
MetricLabels =
{
{ "service", "payments" },
},
MetricName = "payments_request_duration",
Name = "Payments service latency",
Slug = "payments-latency",
TraceFilter = new Pulumi.Inputs.TraceMetricsRuleTraceFilterArgs
{
Spans = new[]
{
new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanArgs
{
MatchType = "include",
Service = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanServiceArgs
{
Match = "exact",
Value = "payments",
},
},
},
},
});
});
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 {
_, err := chronosphere.NewTraceMetricsRule(ctx, "paymentsLatency", &chronosphere.TraceMetricsRuleArgs{
GroupBies: chronosphere.TraceMetricsRuleGroupByArray{
"operation",
},
HistogramBucketsSeconds: pulumi.Float64Array{
pulumi.Float64(0.1),
pulumi.Float64(0.5),
pulumi.Float64(1),
pulumi.Float64(2),
pulumi.Float64(5),
},
MetricLabels: pulumi.StringMap{
"service": pulumi.String("payments"),
},
MetricName: pulumi.String("payments_request_duration"),
Name: pulumi.String("Payments service latency"),
Slug: pulumi.String("payments-latency"),
TraceFilter: &chronosphere.TraceMetricsRuleTraceFilterArgs{
Spans: chronosphere.TraceMetricsRuleTraceFilterSpanArray{
&chronosphere.TraceMetricsRuleTraceFilterSpanArgs{
MatchType: pulumi.String("include"),
Service: &chronosphere.TraceMetricsRuleTraceFilterSpanServiceArgs{
Match: pulumi.String("exact"),
Value: pulumi.String("payments"),
},
},
},
},
})
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.TraceMetricsRule;
import com.pulumi.chronosphere.TraceMetricsRuleArgs;
import com.pulumi.chronosphere.inputs.TraceMetricsRuleTraceFilterArgs;
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 paymentsLatency = new TraceMetricsRule("paymentsLatency", TraceMetricsRuleArgs.builder()
.groupBies("operation")
.histogramBucketsSeconds(
0.1,
0.5,
1,
2,
5)
.metricLabels(Map.of("service", "payments"))
.metricName("payments_request_duration")
.name("Payments service latency")
.slug("payments-latency")
.traceFilter(TraceMetricsRuleTraceFilterArgs.builder()
.spans(TraceMetricsRuleTraceFilterSpanArgs.builder()
.matchType("include")
.service(TraceMetricsRuleTraceFilterSpanServiceArgs.builder()
.match("exact")
.value("payments")
.build())
.build())
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const paymentsLatency = new chronosphere.TraceMetricsRule("paymentsLatency", {
groupBies: ["operation"],
histogramBucketsSeconds: [
0.1,
0.5,
1,
2,
5,
],
metricLabels: {
service: "payments",
},
metricName: "payments_request_duration",
name: "Payments service latency",
slug: "payments-latency",
traceFilter: {
spans: [{
matchType: "include",
service: {
match: "exact",
value: "payments",
},
}],
},
});
import pulumi
import pulumi_chronosphere as chronosphere
payments_latency = chronosphere.TraceMetricsRule("paymentsLatency",
group_bies=["operation"],
histogram_buckets_seconds=[
0.1,
0.5,
1,
2,
5,
],
metric_labels={
"service": "payments",
},
metric_name="payments_request_duration",
name="Payments service latency",
slug="payments-latency",
trace_filter=chronosphere.TraceMetricsRuleTraceFilterArgs(
spans=[chronosphere.TraceMetricsRuleTraceFilterSpanArgs(
match_type="include",
service=chronosphere.TraceMetricsRuleTraceFilterSpanServiceArgs(
match="exact",
value="payments",
),
)],
))
resources:
paymentsLatency:
type: chronosphere:TraceMetricsRule
properties:
groupBies:
- operation
histogramBucketsSeconds:
- 0.1
- 0.5
- 1
- 2
- 5
metricLabels:
service: payments
metricName: payments_request_duration
name: Payments service latency
slug: payments-latency
traceFilter:
spans:
- matchType: include
service:
match: exact
value: payments
Create TraceMetricsRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TraceMetricsRule(name: string, args: TraceMetricsRuleArgs, opts?: CustomResourceOptions);@overload
def TraceMetricsRule(resource_name: str,
args: TraceMetricsRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TraceMetricsRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None,
trace_filter: Optional[TraceMetricsRuleTraceFilterArgs] = None,
group_bies: Optional[Sequence[TraceMetricsRuleGroupByArgs]] = None,
histogram_buckets_seconds: Optional[Sequence[float]] = None,
metric_labels: Optional[Mapping[str, str]] = None,
scope_filter: Optional[TraceMetricsRuleScopeFilterArgs] = None,
slug: Optional[str] = None)func NewTraceMetricsRule(ctx *Context, name string, args TraceMetricsRuleArgs, opts ...ResourceOption) (*TraceMetricsRule, error)public TraceMetricsRule(string name, TraceMetricsRuleArgs args, CustomResourceOptions? opts = null)
public TraceMetricsRule(String name, TraceMetricsRuleArgs args)
public TraceMetricsRule(String name, TraceMetricsRuleArgs args, CustomResourceOptions options)
type: chronosphere:TraceMetricsRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "chronosphere_tracemetricsrule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TraceMetricsRuleArgs
- 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 TraceMetricsRuleArgs
- 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 TraceMetricsRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TraceMetricsRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TraceMetricsRuleArgs
- 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 traceMetricsRuleResource = new Pulumi.TraceMetricsRule("traceMetricsRuleResource", new()
{
MetricName = "string",
Name = "string",
TraceFilter = new Pulumi.Inputs.TraceMetricsRuleTraceFilterArgs
{
ScopeFilter = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterArgs
{
SpanScopes = new[]
{
new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeArgs
{
Duration = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeErrorArgs
{
Value = false,
},
IsRootSpan = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeIsRootSpanArgs
{
Value = false,
},
MatchType = "string",
Operation = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentOperation = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentService = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
Service = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
SpanCount = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeSpanCountArgs
{
Max = 0,
Min = 0,
},
Tags = new[]
{
new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagArgs
{
Key = "string",
NumericValue = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagNumericValueArgs
{
Comparison = "string",
Value = 0,
},
Value = new Pulumi.Inputs.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagValueArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
},
},
},
},
},
Spans = new[]
{
new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanArgs
{
Duration = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanErrorArgs
{
Value = false,
},
IsRootSpan = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanIsRootSpanArgs
{
Value = false,
},
MatchType = "string",
Operation = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentOperation = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanParentOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentService = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanParentServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
Service = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
SpanCount = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanSpanCountArgs
{
Max = 0,
Min = 0,
},
Tags = new[]
{
new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanTagArgs
{
Key = "string",
NumericValue = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanTagNumericValueArgs
{
Comparison = "string",
Value = 0,
},
Value = new Pulumi.Inputs.TraceMetricsRuleTraceFilterSpanTagValueArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
},
},
},
},
Trace = new Pulumi.Inputs.TraceMetricsRuleTraceFilterTraceArgs
{
Duration = new Pulumi.Inputs.TraceMetricsRuleTraceFilterTraceDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.TraceMetricsRuleTraceFilterTraceErrorArgs
{
Value = false,
},
},
},
GroupBies = new[]
{
new Pulumi.Inputs.TraceMetricsRuleGroupByArgs
{
Key = new Pulumi.Inputs.TraceMetricsRuleGroupByKeyArgs
{
Type = "string",
NamedKey = "string",
},
Label = "string",
},
},
HistogramBucketsSeconds = new[]
{
0,
},
MetricLabels =
{
{ "string", "string" },
},
ScopeFilter = new Pulumi.Inputs.TraceMetricsRuleScopeFilterArgs
{
SpanScopes = new[]
{
new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeArgs
{
Duration = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeErrorArgs
{
Value = false,
},
IsRootSpan = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeIsRootSpanArgs
{
Value = false,
},
MatchType = "string",
Operation = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentOperation = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeParentOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentService = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeParentServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
Service = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
SpanCount = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeSpanCountArgs
{
Max = 0,
Min = 0,
},
Tags = new[]
{
new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeTagArgs
{
Key = "string",
NumericValue = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeTagNumericValueArgs
{
Comparison = "string",
Value = 0,
},
Value = new Pulumi.Inputs.TraceMetricsRuleScopeFilterSpanScopeTagValueArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
},
},
},
},
},
Slug = "string",
});
example, err := chronosphere.NewTraceMetricsRule(ctx, "traceMetricsRuleResource", &chronosphere.TraceMetricsRuleArgs{
MetricName: pulumi.String("string"),
Name: pulumi.String("string"),
TraceFilter: &chronosphere.TraceMetricsRuleTraceFilterArgs{
ScopeFilter: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterArgs{
SpanScopes: chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeArray{
&chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeArgs{
Duration: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeErrorArgs{
Value: pulumi.Bool(false),
},
IsRootSpan: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeIsRootSpanArgs{
Value: pulumi.Bool(false),
},
MatchType: pulumi.String("string"),
Operation: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentOperation: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentService: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
Service: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
SpanCount: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeSpanCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
Tags: chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagArray{
&chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagArgs{
Key: pulumi.String("string"),
NumericValue: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagNumericValueArgs{
Comparison: pulumi.String("string"),
Value: pulumi.Float64(0),
},
Value: &chronosphere.TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagValueArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
},
Spans: chronosphere.TraceMetricsRuleTraceFilterSpanArray{
&chronosphere.TraceMetricsRuleTraceFilterSpanArgs{
Duration: &chronosphere.TraceMetricsRuleTraceFilterSpanDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.TraceMetricsRuleTraceFilterSpanErrorArgs{
Value: pulumi.Bool(false),
},
IsRootSpan: &chronosphere.TraceMetricsRuleTraceFilterSpanIsRootSpanArgs{
Value: pulumi.Bool(false),
},
MatchType: pulumi.String("string"),
Operation: &chronosphere.TraceMetricsRuleTraceFilterSpanOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentOperation: &chronosphere.TraceMetricsRuleTraceFilterSpanParentOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentService: &chronosphere.TraceMetricsRuleTraceFilterSpanParentServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
Service: &chronosphere.TraceMetricsRuleTraceFilterSpanServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
SpanCount: &chronosphere.TraceMetricsRuleTraceFilterSpanSpanCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
Tags: chronosphere.TraceMetricsRuleTraceFilterSpanTagArray{
&chronosphere.TraceMetricsRuleTraceFilterSpanTagArgs{
Key: pulumi.String("string"),
NumericValue: &chronosphere.TraceMetricsRuleTraceFilterSpanTagNumericValueArgs{
Comparison: pulumi.String("string"),
Value: pulumi.Float64(0),
},
Value: &chronosphere.TraceMetricsRuleTraceFilterSpanTagValueArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
Trace: &chronosphere.TraceMetricsRuleTraceFilterTraceArgs{
Duration: &chronosphere.TraceMetricsRuleTraceFilterTraceDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.TraceMetricsRuleTraceFilterTraceErrorArgs{
Value: pulumi.Bool(false),
},
},
},
GroupBies: chronosphere.TraceMetricsRuleGroupByArray{
&chronosphere.TraceMetricsRuleGroupByArgs{
Key: &chronosphere.TraceMetricsRuleGroupByKeyArgs{
Type: pulumi.String("string"),
NamedKey: pulumi.String("string"),
},
Label: pulumi.String("string"),
},
},
HistogramBucketsSeconds: pulumi.Float64Array{
pulumi.Float64(0),
},
MetricLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ScopeFilter: &chronosphere.TraceMetricsRuleScopeFilterArgs{
SpanScopes: chronosphere.TraceMetricsRuleScopeFilterSpanScopeArray{
&chronosphere.TraceMetricsRuleScopeFilterSpanScopeArgs{
Duration: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeErrorArgs{
Value: pulumi.Bool(false),
},
IsRootSpan: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeIsRootSpanArgs{
Value: pulumi.Bool(false),
},
MatchType: pulumi.String("string"),
Operation: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentOperation: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeParentOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentService: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeParentServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
Service: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
SpanCount: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeSpanCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
Tags: chronosphere.TraceMetricsRuleScopeFilterSpanScopeTagArray{
&chronosphere.TraceMetricsRuleScopeFilterSpanScopeTagArgs{
Key: pulumi.String("string"),
NumericValue: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeTagNumericValueArgs{
Comparison: pulumi.String("string"),
Value: pulumi.Float64(0),
},
Value: &chronosphere.TraceMetricsRuleScopeFilterSpanScopeTagValueArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
},
Slug: pulumi.String("string"),
})
resource "chronosphere_tracemetricsrule" "traceMetricsRuleResource" {
metric_name = "string"
name = "string"
trace_filter = {
scope_filter = {
span_scopes = [{
"duration" = {
"maxSecs" = 0
"minSecs" = 0
}
"error" = {
"value" = false
}
"isRootSpan" = {
"value" = false
}
"matchType" = "string"
"operation" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"parentOperation" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"parentService" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"service" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"spanCount" = {
"max" = 0
"min" = 0
}
"tags" = [{
"key" = "string"
"numericValue" = {
"comparison" = "string"
"value" = 0
}
"value" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
}]
}]
}
spans = [{
"duration" = {
"maxSecs" = 0
"minSecs" = 0
}
"error" = {
"value" = false
}
"isRootSpan" = {
"value" = false
}
"matchType" = "string"
"operation" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"parentOperation" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"parentService" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"service" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"spanCount" = {
"max" = 0
"min" = 0
}
"tags" = [{
"key" = "string"
"numericValue" = {
"comparison" = "string"
"value" = 0
}
"value" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
}]
}]
trace = {
duration = {
max_secs = 0
min_secs = 0
}
error = {
value = false
}
}
}
group_bies {
key = {
type = "string"
named_key = "string"
}
label = "string"
}
histogram_buckets_seconds = [0]
metric_labels = {
"string" = "string"
}
scope_filter = {
span_scopes = [{
"duration" = {
"maxSecs" = 0
"minSecs" = 0
}
"error" = {
"value" = false
}
"isRootSpan" = {
"value" = false
}
"matchType" = "string"
"operation" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"parentOperation" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"parentService" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"service" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
"spanCount" = {
"max" = 0
"min" = 0
}
"tags" = [{
"key" = "string"
"numericValue" = {
"comparison" = "string"
"value" = 0
}
"value" = {
"inValues" = ["string"]
"match" = "string"
"value" = "string"
}
}]
}]
}
slug = "string"
}
var traceMetricsRuleResource = new TraceMetricsRule("traceMetricsRuleResource", TraceMetricsRuleArgs.builder()
.metricName("string")
.name("string")
.traceFilter(TraceMetricsRuleTraceFilterArgs.builder()
.scopeFilter(TraceMetricsRuleTraceFilterScopeFilterArgs.builder()
.spanScopes(TraceMetricsRuleTraceFilterScopeFilterSpanScopeArgs.builder()
.duration(TraceMetricsRuleTraceFilterScopeFilterSpanScopeDurationArgs.builder()
.maxSecs(0.0)
.minSecs(0.0)
.build())
.error(TraceMetricsRuleTraceFilterScopeFilterSpanScopeErrorArgs.builder()
.value(false)
.build())
.isRootSpan(TraceMetricsRuleTraceFilterScopeFilterSpanScopeIsRootSpanArgs.builder()
.value(false)
.build())
.matchType("string")
.operation(TraceMetricsRuleTraceFilterScopeFilterSpanScopeOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentOperation(TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentService(TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.service(TraceMetricsRuleTraceFilterScopeFilterSpanScopeServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.spanCount(TraceMetricsRuleTraceFilterScopeFilterSpanScopeSpanCountArgs.builder()
.max(0)
.min(0)
.build())
.tags(TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagArgs.builder()
.key("string")
.numericValue(TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagNumericValueArgs.builder()
.comparison("string")
.value(0.0)
.build())
.value(TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagValueArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.build())
.build())
.build())
.spans(TraceMetricsRuleTraceFilterSpanArgs.builder()
.duration(TraceMetricsRuleTraceFilterSpanDurationArgs.builder()
.maxSecs(0.0)
.minSecs(0.0)
.build())
.error(TraceMetricsRuleTraceFilterSpanErrorArgs.builder()
.value(false)
.build())
.isRootSpan(TraceMetricsRuleTraceFilterSpanIsRootSpanArgs.builder()
.value(false)
.build())
.matchType("string")
.operation(TraceMetricsRuleTraceFilterSpanOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentOperation(TraceMetricsRuleTraceFilterSpanParentOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentService(TraceMetricsRuleTraceFilterSpanParentServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.service(TraceMetricsRuleTraceFilterSpanServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.spanCount(TraceMetricsRuleTraceFilterSpanSpanCountArgs.builder()
.max(0)
.min(0)
.build())
.tags(TraceMetricsRuleTraceFilterSpanTagArgs.builder()
.key("string")
.numericValue(TraceMetricsRuleTraceFilterSpanTagNumericValueArgs.builder()
.comparison("string")
.value(0.0)
.build())
.value(TraceMetricsRuleTraceFilterSpanTagValueArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.build())
.build())
.trace(TraceMetricsRuleTraceFilterTraceArgs.builder()
.duration(TraceMetricsRuleTraceFilterTraceDurationArgs.builder()
.maxSecs(0.0)
.minSecs(0.0)
.build())
.error(TraceMetricsRuleTraceFilterTraceErrorArgs.builder()
.value(false)
.build())
.build())
.build())
.groupBies(TraceMetricsRuleGroupByArgs.builder()
.key(TraceMetricsRuleGroupByKeyArgs.builder()
.type("string")
.namedKey("string")
.build())
.label("string")
.build())
.histogramBucketsSeconds(0.0)
.metricLabels(Map.of("string", "string"))
.scopeFilter(TraceMetricsRuleScopeFilterArgs.builder()
.spanScopes(TraceMetricsRuleScopeFilterSpanScopeArgs.builder()
.duration(TraceMetricsRuleScopeFilterSpanScopeDurationArgs.builder()
.maxSecs(0.0)
.minSecs(0.0)
.build())
.error(TraceMetricsRuleScopeFilterSpanScopeErrorArgs.builder()
.value(false)
.build())
.isRootSpan(TraceMetricsRuleScopeFilterSpanScopeIsRootSpanArgs.builder()
.value(false)
.build())
.matchType("string")
.operation(TraceMetricsRuleScopeFilterSpanScopeOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentOperation(TraceMetricsRuleScopeFilterSpanScopeParentOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentService(TraceMetricsRuleScopeFilterSpanScopeParentServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.service(TraceMetricsRuleScopeFilterSpanScopeServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.spanCount(TraceMetricsRuleScopeFilterSpanScopeSpanCountArgs.builder()
.max(0)
.min(0)
.build())
.tags(TraceMetricsRuleScopeFilterSpanScopeTagArgs.builder()
.key("string")
.numericValue(TraceMetricsRuleScopeFilterSpanScopeTagNumericValueArgs.builder()
.comparison("string")
.value(0.0)
.build())
.value(TraceMetricsRuleScopeFilterSpanScopeTagValueArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.build())
.build())
.build())
.slug("string")
.build());
trace_metrics_rule_resource = chronosphere.TraceMetricsRule("traceMetricsRuleResource",
metric_name="string",
name="string",
trace_filter={
"scope_filter": {
"span_scopes": [{
"duration": {
"max_secs": float(0),
"min_secs": float(0),
},
"error": {
"value": False,
},
"is_root_span": {
"value": False,
},
"match_type": "string",
"operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"span_count": {
"max": 0,
"min": 0,
},
"tags": [{
"key": "string",
"numeric_value": {
"comparison": "string",
"value": float(0),
},
"value": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
}],
}],
},
"spans": [{
"duration": {
"max_secs": float(0),
"min_secs": float(0),
},
"error": {
"value": False,
},
"is_root_span": {
"value": False,
},
"match_type": "string",
"operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"span_count": {
"max": 0,
"min": 0,
},
"tags": [{
"key": "string",
"numeric_value": {
"comparison": "string",
"value": float(0),
},
"value": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
}],
}],
"trace": {
"duration": {
"max_secs": float(0),
"min_secs": float(0),
},
"error": {
"value": False,
},
},
},
group_bies=[{
"key": {
"type": "string",
"named_key": "string",
},
"label": "string",
}],
histogram_buckets_seconds=[float(0)],
metric_labels={
"string": "string",
},
scope_filter={
"span_scopes": [{
"duration": {
"max_secs": float(0),
"min_secs": float(0),
},
"error": {
"value": False,
},
"is_root_span": {
"value": False,
},
"match_type": "string",
"operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_operation": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"parent_service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"service": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
"span_count": {
"max": 0,
"min": 0,
},
"tags": [{
"key": "string",
"numeric_value": {
"comparison": "string",
"value": float(0),
},
"value": {
"in_values": ["string"],
"match": "string",
"value": "string",
},
}],
}],
},
slug="string")
const traceMetricsRuleResource = new chronosphere.TraceMetricsRule("traceMetricsRuleResource", {
metricName: "string",
name: "string",
traceFilter: {
scopeFilter: {
spanScopes: [{
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
isRootSpan: {
value: false,
},
matchType: "string",
operation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentOperation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentService: {
inValues: ["string"],
match: "string",
value: "string",
},
service: {
inValues: ["string"],
match: "string",
value: "string",
},
spanCount: {
max: 0,
min: 0,
},
tags: [{
key: "string",
numericValue: {
comparison: "string",
value: 0,
},
value: {
inValues: ["string"],
match: "string",
value: "string",
},
}],
}],
},
spans: [{
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
isRootSpan: {
value: false,
},
matchType: "string",
operation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentOperation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentService: {
inValues: ["string"],
match: "string",
value: "string",
},
service: {
inValues: ["string"],
match: "string",
value: "string",
},
spanCount: {
max: 0,
min: 0,
},
tags: [{
key: "string",
numericValue: {
comparison: "string",
value: 0,
},
value: {
inValues: ["string"],
match: "string",
value: "string",
},
}],
}],
trace: {
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
},
},
groupBies: [{
key: {
type: "string",
namedKey: "string",
},
label: "string",
}],
histogramBucketsSeconds: [0],
metricLabels: {
string: "string",
},
scopeFilter: {
spanScopes: [{
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
isRootSpan: {
value: false,
},
matchType: "string",
operation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentOperation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentService: {
inValues: ["string"],
match: "string",
value: "string",
},
service: {
inValues: ["string"],
match: "string",
value: "string",
},
spanCount: {
max: 0,
min: 0,
},
tags: [{
key: "string",
numericValue: {
comparison: "string",
value: 0,
},
value: {
inValues: ["string"],
match: "string",
value: "string",
},
}],
}],
},
slug: "string",
});
type: chronosphere:TraceMetricsRule
properties:
groupBies:
- key:
namedKey: string
type: string
label: string
histogramBucketsSeconds:
- 0
metricLabels:
string: string
metricName: string
name: string
scopeFilter:
spanScopes:
- duration:
maxSecs: 0
minSecs: 0
error:
value: false
isRootSpan:
value: false
matchType: string
operation:
inValues:
- string
match: string
value: string
parentOperation:
inValues:
- string
match: string
value: string
parentService:
inValues:
- string
match: string
value: string
service:
inValues:
- string
match: string
value: string
spanCount:
max: 0
min: 0
tags:
- key: string
numericValue:
comparison: string
value: 0
value:
inValues:
- string
match: string
value: string
slug: string
traceFilter:
scopeFilter:
spanScopes:
- duration:
maxSecs: 0
minSecs: 0
error:
value: false
isRootSpan:
value: false
matchType: string
operation:
inValues:
- string
match: string
value: string
parentOperation:
inValues:
- string
match: string
value: string
parentService:
inValues:
- string
match: string
value: string
service:
inValues:
- string
match: string
value: string
spanCount:
max: 0
min: 0
tags:
- key: string
numericValue:
comparison: string
value: 0
value:
inValues:
- string
match: string
value: string
spans:
- duration:
maxSecs: 0
minSecs: 0
error:
value: false
isRootSpan:
value: false
matchType: string
operation:
inValues:
- string
match: string
value: string
parentOperation:
inValues:
- string
match: string
value: string
parentService:
inValues:
- string
match: string
value: string
service:
inValues:
- string
match: string
value: string
spanCount:
max: 0
min: 0
tags:
- key: string
numericValue:
comparison: string
value: 0
value:
inValues:
- string
match: string
value: string
trace:
duration:
maxSecs: 0
minSecs: 0
error:
value: false
TraceMetricsRule 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 TraceMetricsRule resource accepts the following input properties:
- Metric
Name string - Base name of the generated Prometheus metrics emitted by this rule.
- Name string
- Display name of the trace metrics rule.
- Trace
Filter Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - Group
Bies List<Chronosphere.Pulumi. Inputs. Trace Metrics Rule Group By> - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- Histogram
Buckets List<double>Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- Metric
Labels Dictionary<string, string> - Static key/value labels added to every metric series emitted by the rule.
- Scope
Filter Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - Slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
- Metric
Name string - Base name of the generated Prometheus metrics emitted by this rule.
- Name string
- Display name of the trace metrics rule.
- Trace
Filter TraceMetrics Rule Trace Filter Args - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - Group
Bies []TraceMetrics Rule Group By Args - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- Histogram
Buckets []float64Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- Metric
Labels map[string]string - Static key/value labels added to every metric series emitted by the rule.
- Scope
Filter TraceMetrics Rule Scope Filter Args - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - Slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
- metric_
name string - Base name of the generated Prometheus metrics emitted by this rule.
- name string
- Display name of the trace metrics rule.
- trace_
filter object - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - group_
bies list(object) - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram_
buckets_ list(number)seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric_
labels map(string) - Static key/value labels added to every metric series emitted by the rule.
- scope_
filter object - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
- metric
Name String - Base name of the generated Prometheus metrics emitted by this rule.
- name String
- Display name of the trace metrics rule.
- trace
Filter TraceMetrics Rule Trace Filter - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - group
Bies List<TraceMetrics Rule Group By> - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram
Buckets List<Double>Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric
Labels Map<String,String> - Static key/value labels added to every metric series emitted by the rule.
- scope
Filter TraceMetrics Rule Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug String
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
- metric
Name string - Base name of the generated Prometheus metrics emitted by this rule.
- name string
- Display name of the trace metrics rule.
- trace
Filter TraceMetrics Rule Trace Filter - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - group
Bies TraceMetrics Rule Group By[] - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram
Buckets number[]Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric
Labels {[key: string]: string} - Static key/value labels added to every metric series emitted by the rule.
- scope
Filter TraceMetrics Rule Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
- metric_
name str - Base name of the generated Prometheus metrics emitted by this rule.
- name str
- Display name of the trace metrics rule.
- trace_
filter TraceMetrics Rule Trace Filter Args - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - group_
bies Sequence[TraceMetrics Rule Group By Args] - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram_
buckets_ Sequence[float]seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric_
labels Mapping[str, str] - Static key/value labels added to every metric series emitted by the rule.
- scope_
filter TraceMetrics Rule Scope Filter Args - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug str
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
- metric
Name String - Base name of the generated Prometheus metrics emitted by this rule.
- name String
- Display name of the trace metrics rule.
- trace
Filter Property Map - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace. - group
Bies List<Property Map> - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram
Buckets List<Number>Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric
Labels Map<String> - Static key/value labels added to every metric series emitted by the rule.
- scope
Filter Property Map - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug String
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the TraceMetricsRule 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 TraceMetricsRule Resource
Get an existing TraceMetricsRule 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?: TraceMetricsRuleState, opts?: CustomResourceOptions): TraceMetricsRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group_bies: Optional[Sequence[TraceMetricsRuleGroupByArgs]] = None,
histogram_buckets_seconds: Optional[Sequence[float]] = None,
metric_labels: Optional[Mapping[str, str]] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None,
scope_filter: Optional[TraceMetricsRuleScopeFilterArgs] = None,
slug: Optional[str] = None,
trace_filter: Optional[TraceMetricsRuleTraceFilterArgs] = None) -> TraceMetricsRulefunc GetTraceMetricsRule(ctx *Context, name string, id IDInput, state *TraceMetricsRuleState, opts ...ResourceOption) (*TraceMetricsRule, error)public static TraceMetricsRule Get(string name, Input<string> id, TraceMetricsRuleState? state, CustomResourceOptions? opts = null)public static TraceMetricsRule get(String name, Output<String> id, TraceMetricsRuleState state, CustomResourceOptions options)resources: _: type: chronosphere:TraceMetricsRule get: id: ${id}import {
to = chronosphere_tracemetricsrule.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.
- Group
Bies List<Chronosphere.Pulumi. Inputs. Trace Metrics Rule Group By> - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- Histogram
Buckets List<double>Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- Metric
Labels Dictionary<string, string> - Static key/value labels added to every metric series emitted by the rule.
- Metric
Name string - Base name of the generated Prometheus metrics emitted by this rule.
- Name string
- Display name of the trace metrics rule.
- Scope
Filter Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - Slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - Trace
Filter Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
- Group
Bies []TraceMetrics Rule Group By Args - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- Histogram
Buckets []float64Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- Metric
Labels map[string]string - Static key/value labels added to every metric series emitted by the rule.
- Metric
Name string - Base name of the generated Prometheus metrics emitted by this rule.
- Name string
- Display name of the trace metrics rule.
- Scope
Filter TraceMetrics Rule Scope Filter Args - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - Slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - Trace
Filter TraceMetrics Rule Trace Filter Args - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
- group_
bies list(object) - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram_
buckets_ list(number)seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric_
labels map(string) - Static key/value labels added to every metric series emitted by the rule.
- metric_
name string - Base name of the generated Prometheus metrics emitted by this rule.
- name string
- Display name of the trace metrics rule.
- scope_
filter object - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - trace_
filter object - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
- group
Bies List<TraceMetrics Rule Group By> - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram
Buckets List<Double>Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric
Labels Map<String,String> - Static key/value labels added to every metric series emitted by the rule.
- metric
Name String - Base name of the generated Prometheus metrics emitted by this rule.
- name String
- Display name of the trace metrics rule.
- scope
Filter TraceMetrics Rule Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug String
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - trace
Filter TraceMetrics Rule Trace Filter - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
- group
Bies TraceMetrics Rule Group By[] - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram
Buckets number[]Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric
Labels {[key: string]: string} - Static key/value labels added to every metric series emitted by the rule.
- metric
Name string - Base name of the generated Prometheus metrics emitted by this rule.
- name string
- Display name of the trace metrics rule.
- scope
Filter TraceMetrics Rule Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug string
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - trace
Filter TraceMetrics Rule Trace Filter - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
- group_
bies Sequence[TraceMetrics Rule Group By Args] - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram_
buckets_ Sequence[float]seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric_
labels Mapping[str, str] - Static key/value labels added to every metric series emitted by the rule.
- metric_
name str - Base name of the generated Prometheus metrics emitted by this rule.
- name str
- Display name of the trace metrics rule.
- scope_
filter TraceMetrics Rule Scope Filter Args - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug str
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - trace_
filter TraceMetrics Rule Trace Filter Args - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
- group
Bies List<Property Map> - Span attributes to project into metric labels. Each entry maps a key on the matched span to a label on the resulting metric series.
- histogram
Buckets List<Number>Seconds - Histogram bucket upper bounds in seconds for the generated span-duration histogram metric.
- metric
Labels Map<String> - Static key/value labels added to every metric series emitted by the rule.
- metric
Name String - Base name of the generated Prometheus metrics emitted by this rule.
- name String
- Display name of the trace metrics rule.
- scope
Filter Property Map - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - slug String
- Stable identifier for the trace metrics rule. Generated from
nameif omitted. Immutable after creation. - trace
Filter Property Map - Filter that selects traces and spans. A trace matches when its trace-level conditions hold and every
spanblock is satisfied by at least one span in the trace.
Supporting Types
TraceMetricsRuleGroupBy, TraceMetricsRuleGroupByArgs
- Key
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Group By Key - Span attribute to group by.
- Label string
- Name of the resulting metric label.
- Key
Trace
Metrics Rule Group By Key - Span attribute to group by.
- Label string
- Name of the resulting metric label.
- key
Trace
Metrics Rule Group By Key - Span attribute to group by.
- label String
- Name of the resulting metric label.
- key
Trace
Metrics Rule Group By Key - Span attribute to group by.
- label string
- Name of the resulting metric label.
- key
Trace
Metrics Rule Group By Key - Span attribute to group by.
- label str
- Name of the resulting metric label.
- key Property Map
- Span attribute to group by.
- label String
- Name of the resulting metric label.
TraceMetricsRuleGroupByKey, TraceMetricsRuleGroupByKeyArgs
TraceMetricsRuleScopeFilter, TraceMetricsRuleScopeFilterArgs
- Span
Scopes List<Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope> - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- Span
Scopes []TraceMetrics Rule Scope Filter Span Scope - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span_
scopes list(object) - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span
Scopes List<TraceMetrics Rule Scope Filter Span Scope> - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span
Scopes TraceMetrics Rule Scope Filter Span Scope[] - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span_
scopes Sequence[TraceMetrics Rule Scope Filter Span Scope] - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span
Scopes List<Property Map> - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
TraceMetricsRuleScopeFilterSpanScope, TraceMetricsRuleScopeFilterSpanScopeArgs
- Duration
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - Is
Root Chronosphere.Span Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - Match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - Operation
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Operation Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Service Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- Service
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- Span
Count Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
List<Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Tag> - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- Duration
Trace
Metrics Rule Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Trace
Metrics Rule Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - Is
Root TraceSpan Metrics Rule Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - Match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - Operation
Trace
Metrics Rule Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Operation TraceMetrics Rule Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Service TraceMetrics Rule Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- Service
Trace
Metrics Rule Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- Span
Count TraceMetrics Rule Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
[]Trace
Metrics Rule Scope Filter Span Scope Tag - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration object
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error object
- Matches traces or spans where the target boolean field equals
value. - is_
root_ objectspan - Matches traces or spans where the target boolean field equals
value. - match_
type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation object
- Matches traces or spans where the target string field satisfies the match condition.
- parent_
operation object - Matches traces or spans where the target string field satisfies the match condition.
- parent_
service object - Matches traces or spans where the target string field satisfies the match condition.
- service object
- Matches traces or spans where the target string field satisfies the match condition.
- span_
count object - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. - list(object)
- Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - is
Root TraceSpan Metrics Rule Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - match
Type String - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation TraceMetrics Rule Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service TraceMetrics Rule Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- span
Count TraceMetrics Rule Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
List<Trace
Metrics Rule Scope Filter Span Scope Tag> - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - is
Root TraceSpan Metrics Rule Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation TraceMetrics Rule Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service TraceMetrics Rule Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- span
Count TraceMetrics Rule Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
Trace
Metrics Rule Scope Filter Span Scope Tag[] - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - is_
root_ Tracespan Metrics Rule Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - match_
type str - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent_
operation TraceMetrics Rule Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent_
service TraceMetrics Rule Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- span_
count TraceMetrics Rule Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
Sequence[Trace
Metrics Rule Scope Filter Span Scope Tag] - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration Property Map
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error Property Map
- Matches traces or spans where the target boolean field equals
value. - is
Root Property MapSpan - Matches traces or spans where the target boolean field equals
value. - match
Type String - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation Property Map
- Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation Property Map - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service Property Map - Matches traces or spans where the target string field satisfies the match condition.
- service Property Map
- Matches traces or spans where the target string field satisfies the match condition.
- span
Count Property Map - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. - List<Property Map>
- Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
TraceMetricsRuleScopeFilterSpanScopeDuration, TraceMetricsRuleScopeFilterSpanScopeDurationArgs
TraceMetricsRuleScopeFilterSpanScopeError, TraceMetricsRuleScopeFilterSpanScopeErrorArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
TraceMetricsRuleScopeFilterSpanScopeIsRootSpan, TraceMetricsRuleScopeFilterSpanScopeIsRootSpanArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
TraceMetricsRuleScopeFilterSpanScopeOperation, TraceMetricsRuleScopeFilterSpanScopeOperationArgs
TraceMetricsRuleScopeFilterSpanScopeParentOperation, TraceMetricsRuleScopeFilterSpanScopeParentOperationArgs
TraceMetricsRuleScopeFilterSpanScopeParentService, TraceMetricsRuleScopeFilterSpanScopeParentServiceArgs
TraceMetricsRuleScopeFilterSpanScopeService, TraceMetricsRuleScopeFilterSpanScopeServiceArgs
TraceMetricsRuleScopeFilterSpanScopeSpanCount, TraceMetricsRuleScopeFilterSpanScopeSpanCountArgs
TraceMetricsRuleScopeFilterSpanScopeTag, TraceMetricsRuleScopeFilterSpanScopeTagArgs
- Key string
- Span attribute to group by.
- Numeric
Value Chronosphere.Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - Value
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- Key string
- Span attribute to group by.
- Numeric
Value TraceMetrics Rule Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - Value
Trace
Metrics Rule Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key string
- Span attribute to group by.
- numeric_
value object - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value object
- Boolean value the target field is compared against.
- key String
- Span attribute to group by.
- numeric
Value TraceMetrics Rule Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key string
- Span attribute to group by.
- numeric
Value TraceMetrics Rule Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key str
- Span attribute to group by.
- numeric_
value TraceMetrics Rule Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key String
- Span attribute to group by.
- numeric
Value Property Map - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value Property Map
- Boolean value the target field is compared against.
TraceMetricsRuleScopeFilterSpanScopeTagNumericValue, TraceMetricsRuleScopeFilterSpanScopeTagNumericValueArgs
- Comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - Value double
- Boolean value the target field is compared against.
- Comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - Value float64
- Boolean value the target field is compared against.
- comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value number
- Boolean value the target field is compared against.
- comparison String
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value Double
- Boolean value the target field is compared against.
- comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value number
- Boolean value the target field is compared against.
- comparison str
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value float
- Boolean value the target field is compared against.
- comparison String
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value Number
- Boolean value the target field is compared against.
TraceMetricsRuleScopeFilterSpanScopeTagValue, TraceMetricsRuleScopeFilterSpanScopeTagValueArgs
TraceMetricsRuleTraceFilter, TraceMetricsRuleTraceFilterArgs
- Scope
Filter Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - Spans
List<Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span> - Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- Trace
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Trace - Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
- Scope
Filter TraceMetrics Rule Trace Filter Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - Spans
[]Trace
Metrics Rule Trace Filter Span - Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- Trace
Trace
Metrics Rule Trace Filter Trace - Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
- scope_
filter object - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - spans list(object)
- Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- trace object
- Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
- scope
Filter TraceMetrics Rule Trace Filter Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - spans
List<Trace
Metrics Rule Trace Filter Span> - Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- trace
Trace
Metrics Rule Trace Filter Trace - Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
- scope
Filter TraceMetrics Rule Trace Filter Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - spans
Trace
Metrics Rule Trace Filter Span[] - Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- trace
Trace
Metrics Rule Trace Filter Trace - Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
- scope_
filter TraceMetrics Rule Trace Filter Scope Filter - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - spans
Sequence[Trace
Metrics Rule Trace Filter Span] - Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- trace
Trace
Metrics Rule Trace Filter Trace - Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
- scope
Filter Property Map - Scope filter that further restricts which spans within a matched trace contribute to metrics or sampling. Only spans matching
span_scopesare included in aggregation. - spans List<Property Map>
- Span-level conditions. Each block defines a set of conditions that must all be satisfied by a single span in the trace for the trace to match.
- trace Property Map
- Trace-level conditions evaluated against the whole trace (aggregated duration and error status).
TraceMetricsRuleTraceFilterScopeFilter, TraceMetricsRuleTraceFilterScopeFilterArgs
- Span
Scopes List<Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope> - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- Span
Scopes []TraceMetrics Rule Trace Filter Scope Filter Span Scope - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span_
scopes list(object) - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span
Scopes List<TraceMetrics Rule Trace Filter Scope Filter Span Scope> - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span
Scopes TraceMetrics Rule Trace Filter Scope Filter Span Scope[] - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span_
scopes Sequence[TraceMetrics Rule Trace Filter Scope Filter Span Scope] - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
- span
Scopes List<Property Map> - Span conditions that select which spans are aggregated. Spans must match at least one block to be included.
TraceMetricsRuleTraceFilterScopeFilterSpanScope, TraceMetricsRuleTraceFilterScopeFilterSpanScopeArgs
- Duration
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - Is
Root Chronosphere.Span Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - Match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - Operation
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Operation Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Service Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- Service
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- Span
Count Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
List<Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Tag> - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- Duration
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - Is
Root TraceSpan Metrics Rule Trace Filter Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - Match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - Operation
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Operation TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Service TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- Service
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- Span
Count TraceMetrics Rule Trace Filter Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
[]Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration object
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error object
- Matches traces or spans where the target boolean field equals
value. - is_
root_ objectspan - Matches traces or spans where the target boolean field equals
value. - match_
type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation object
- Matches traces or spans where the target string field satisfies the match condition.
- parent_
operation object - Matches traces or spans where the target string field satisfies the match condition.
- parent_
service object - Matches traces or spans where the target string field satisfies the match condition.
- service object
- Matches traces or spans where the target string field satisfies the match condition.
- span_
count object - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. - list(object)
- Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - is
Root TraceSpan Metrics Rule Trace Filter Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - match
Type String - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- span
Count TraceMetrics Rule Trace Filter Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
List<Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag> - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - is
Root TraceSpan Metrics Rule Trace Filter Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- span
Count TraceMetrics Rule Trace Filter Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag[] - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Error - Matches traces or spans where the target boolean field equals
value. - is_
root_ Tracespan Metrics Rule Trace Filter Scope Filter Span Scope Is Root Span - Matches traces or spans where the target boolean field equals
value. - match_
type str - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent_
operation TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent_
service TraceMetrics Rule Trace Filter Scope Filter Span Scope Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Service - Matches traces or spans where the target string field satisfies the match condition.
- span_
count TraceMetrics Rule Trace Filter Scope Filter Span Scope Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
Sequence[Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag] - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration Property Map
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error Property Map
- Matches traces or spans where the target boolean field equals
value. - is
Root Property MapSpan - Matches traces or spans where the target boolean field equals
value. - match
Type String - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation Property Map
- Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation Property Map - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service Property Map - Matches traces or spans where the target string field satisfies the match condition.
- service Property Map
- Matches traces or spans where the target string field satisfies the match condition.
- span
Count Property Map - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. - List<Property Map>
- Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
TraceMetricsRuleTraceFilterScopeFilterSpanScopeDuration, TraceMetricsRuleTraceFilterScopeFilterSpanScopeDurationArgs
TraceMetricsRuleTraceFilterScopeFilterSpanScopeError, TraceMetricsRuleTraceFilterScopeFilterSpanScopeErrorArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterScopeFilterSpanScopeIsRootSpan, TraceMetricsRuleTraceFilterScopeFilterSpanScopeIsRootSpanArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterScopeFilterSpanScopeOperation, TraceMetricsRuleTraceFilterScopeFilterSpanScopeOperationArgs
TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentOperation, TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentOperationArgs
TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentService, TraceMetricsRuleTraceFilterScopeFilterSpanScopeParentServiceArgs
TraceMetricsRuleTraceFilterScopeFilterSpanScopeService, TraceMetricsRuleTraceFilterScopeFilterSpanScopeServiceArgs
TraceMetricsRuleTraceFilterScopeFilterSpanScopeSpanCount, TraceMetricsRuleTraceFilterScopeFilterSpanScopeSpanCountArgs
TraceMetricsRuleTraceFilterScopeFilterSpanScopeTag, TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagArgs
- Key string
- Span attribute to group by.
- Numeric
Value Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - Value
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- Key string
- Span attribute to group by.
- Numeric
Value TraceMetrics Rule Trace Filter Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - Value
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key string
- Span attribute to group by.
- numeric_
value object - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value object
- Boolean value the target field is compared against.
- key String
- Span attribute to group by.
- numeric
Value TraceMetrics Rule Trace Filter Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key string
- Span attribute to group by.
- numeric
Value TraceMetrics Rule Trace Filter Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key str
- Span attribute to group by.
- numeric_
value TraceMetrics Rule Trace Filter Scope Filter Span Scope Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Trace Filter Scope Filter Span Scope Tag Value - Boolean value the target field is compared against.
- key String
- Span attribute to group by.
- numeric
Value Property Map - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value Property Map
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagNumericValue, TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagNumericValueArgs
- Comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - Value double
- Boolean value the target field is compared against.
- Comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - Value float64
- Boolean value the target field is compared against.
- comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value number
- Boolean value the target field is compared against.
- comparison String
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value Double
- Boolean value the target field is compared against.
- comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value number
- Boolean value the target field is compared against.
- comparison str
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value float
- Boolean value the target field is compared against.
- comparison String
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value Number
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagValue, TraceMetricsRuleTraceFilterScopeFilterSpanScopeTagValueArgs
TraceMetricsRuleTraceFilterSpan, TraceMetricsRuleTraceFilterSpanArgs
- Duration
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Error - Matches traces or spans where the target boolean field equals
value. - Is
Root Chronosphere.Span Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Is Root Span - Matches traces or spans where the target boolean field equals
value. - Match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - Operation
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Operation Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Service Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- Service
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Service - Matches traces or spans where the target string field satisfies the match condition.
- Span
Count Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
List<Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Tag> - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- Duration
Trace
Metrics Rule Trace Filter Span Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Trace
Metrics Rule Trace Filter Span Error - Matches traces or spans where the target boolean field equals
value. - Is
Root TraceSpan Metrics Rule Trace Filter Span Is Root Span - Matches traces or spans where the target boolean field equals
value. - Match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - Operation
Trace
Metrics Rule Trace Filter Span Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Operation TraceMetrics Rule Trace Filter Span Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- Parent
Service TraceMetrics Rule Trace Filter Span Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- Service
Trace
Metrics Rule Trace Filter Span Service - Matches traces or spans where the target string field satisfies the match condition.
- Span
Count TraceMetrics Rule Trace Filter Span Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
[]Trace
Metrics Rule Trace Filter Span Tag - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration object
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error object
- Matches traces or spans where the target boolean field equals
value. - is_
root_ objectspan - Matches traces or spans where the target boolean field equals
value. - match_
type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation object
- Matches traces or spans where the target string field satisfies the match condition.
- parent_
operation object - Matches traces or spans where the target string field satisfies the match condition.
- parent_
service object - Matches traces or spans where the target string field satisfies the match condition.
- service object
- Matches traces or spans where the target string field satisfies the match condition.
- span_
count object - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. - list(object)
- Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Trace Filter Span Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Span Error - Matches traces or spans where the target boolean field equals
value. - is
Root TraceSpan Metrics Rule Trace Filter Span Is Root Span - Matches traces or spans where the target boolean field equals
value. - match
Type String - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Trace Filter Span Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation TraceMetrics Rule Trace Filter Span Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service TraceMetrics Rule Trace Filter Span Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Trace Filter Span Service - Matches traces or spans where the target string field satisfies the match condition.
- span
Count TraceMetrics Rule Trace Filter Span Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
List<Trace
Metrics Rule Trace Filter Span Tag> - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Trace Filter Span Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Span Error - Matches traces or spans where the target boolean field equals
value. - is
Root TraceSpan Metrics Rule Trace Filter Span Is Root Span - Matches traces or spans where the target boolean field equals
value. - match
Type string - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Trace Filter Span Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation TraceMetrics Rule Trace Filter Span Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service TraceMetrics Rule Trace Filter Span Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Trace Filter Span Service - Matches traces or spans where the target string field satisfies the match condition.
- span
Count TraceMetrics Rule Trace Filter Span Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
Trace
Metrics Rule Trace Filter Span Tag[] - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration
Trace
Metrics Rule Trace Filter Span Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Span Error - Matches traces or spans where the target boolean field equals
value. - is_
root_ Tracespan Metrics Rule Trace Filter Span Is Root Span - Matches traces or spans where the target boolean field equals
value. - match_
type str - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation
Trace
Metrics Rule Trace Filter Span Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent_
operation TraceMetrics Rule Trace Filter Span Parent Operation - Matches traces or spans where the target string field satisfies the match condition.
- parent_
service TraceMetrics Rule Trace Filter Span Parent Service - Matches traces or spans where the target string field satisfies the match condition.
- service
Trace
Metrics Rule Trace Filter Span Service - Matches traces or spans where the target string field satisfies the match condition.
- span_
count TraceMetrics Rule Trace Filter Span Span Count - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. -
Sequence[Trace
Metrics Rule Trace Filter Span Tag] - Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
- duration Property Map
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error Property Map
- Matches traces or spans where the target boolean field equals
value. - is
Root Property MapSpan - Matches traces or spans where the target boolean field equals
value. - match
Type String - Whether matching spans are included (
INCLUDE) or excluded (EXCLUDE) from the scope. Defaults toINCLUDE. - operation Property Map
- Matches traces or spans where the target string field satisfies the match condition.
- parent
Operation Property Map - Matches traces or spans where the target string field satisfies the match condition.
- parent
Service Property Map - Matches traces or spans where the target string field satisfies the match condition.
- service Property Map
- Matches traces or spans where the target string field satisfies the match condition.
- span
Count Property Map - Matches traces where the number of spans satisfying the surrounding span conditions falls within the inclusive
[min, max]range. - List<Property Map>
- Matches spans whose tag (span attribute) with the given
keyhas a value satisfying the nested string or numeric filter.
TraceMetricsRuleTraceFilterSpanDuration, TraceMetricsRuleTraceFilterSpanDurationArgs
TraceMetricsRuleTraceFilterSpanError, TraceMetricsRuleTraceFilterSpanErrorArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterSpanIsRootSpan, TraceMetricsRuleTraceFilterSpanIsRootSpanArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterSpanOperation, TraceMetricsRuleTraceFilterSpanOperationArgs
TraceMetricsRuleTraceFilterSpanParentOperation, TraceMetricsRuleTraceFilterSpanParentOperationArgs
TraceMetricsRuleTraceFilterSpanParentService, TraceMetricsRuleTraceFilterSpanParentServiceArgs
TraceMetricsRuleTraceFilterSpanService, TraceMetricsRuleTraceFilterSpanServiceArgs
TraceMetricsRuleTraceFilterSpanSpanCount, TraceMetricsRuleTraceFilterSpanSpanCountArgs
TraceMetricsRuleTraceFilterSpanTag, TraceMetricsRuleTraceFilterSpanTagArgs
- Key string
- Span attribute to group by.
- Numeric
Value Chronosphere.Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - Value
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Span Tag Value - Boolean value the target field is compared against.
- Key string
- Span attribute to group by.
- Numeric
Value TraceMetrics Rule Trace Filter Span Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - Value
Trace
Metrics Rule Trace Filter Span Tag Value - Boolean value the target field is compared against.
- key string
- Span attribute to group by.
- numeric_
value object - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value object
- Boolean value the target field is compared against.
- key String
- Span attribute to group by.
- numeric
Value TraceMetrics Rule Trace Filter Span Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Trace Filter Span Tag Value - Boolean value the target field is compared against.
- key string
- Span attribute to group by.
- numeric
Value TraceMetrics Rule Trace Filter Span Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Trace Filter Span Tag Value - Boolean value the target field is compared against.
- key str
- Span attribute to group by.
- numeric_
value TraceMetrics Rule Trace Filter Span Tag Numeric Value - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value
Trace
Metrics Rule Trace Filter Span Tag Value - Boolean value the target field is compared against.
- key String
- Span attribute to group by.
- numeric
Value Property Map - Matches traces or spans where the target numeric field satisfies the comparison against
value. - value Property Map
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterSpanTagNumericValue, TraceMetricsRuleTraceFilterSpanTagNumericValueArgs
- Comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - Value double
- Boolean value the target field is compared against.
- Comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - Value float64
- Boolean value the target field is compared against.
- comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value number
- Boolean value the target field is compared against.
- comparison String
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value Double
- Boolean value the target field is compared against.
- comparison string
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value number
- Boolean value the target field is compared against.
- comparison str
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value float
- Boolean value the target field is compared against.
- comparison String
- Numeric comparison operator (for example
EQUALS,GREATER_THAN,LESS_THAN_OR_EQUAL). - value Number
- Boolean value the target field is compared against.
TraceMetricsRuleTraceFilterSpanTagValue, TraceMetricsRuleTraceFilterSpanTagValueArgs
TraceMetricsRuleTraceFilterTrace, TraceMetricsRuleTraceFilterTraceArgs
- Duration
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Trace Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Chronosphere.
Pulumi. Inputs. Trace Metrics Rule Trace Filter Trace Error - Matches traces or spans where the target boolean field equals
value.
- Duration
Trace
Metrics Rule Trace Filter Trace Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - Error
Trace
Metrics Rule Trace Filter Trace Error - Matches traces or spans where the target boolean field equals
value.
- duration
Trace
Metrics Rule Trace Filter Trace Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Trace Error - Matches traces or spans where the target boolean field equals
value.
- duration
Trace
Metrics Rule Trace Filter Trace Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Trace Error - Matches traces or spans where the target boolean field equals
value.
- duration
Trace
Metrics Rule Trace Filter Trace Duration - Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error
Trace
Metrics Rule Trace Filter Trace Error - Matches traces or spans where the target boolean field equals
value.
- duration Property Map
- Matches traces or spans whose duration in seconds falls within the inclusive
[min_secs, max_secs]range. - error Property Map
- Matches traces or spans where the target boolean field equals
value.
TraceMetricsRuleTraceFilterTraceDuration, TraceMetricsRuleTraceFilterTraceDurationArgs
TraceMetricsRuleTraceFilterTraceError, TraceMetricsRuleTraceFilterTraceErrorArgs
- Value bool
- Boolean value the target field is compared against.
- Value bool
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
- value boolean
- Boolean value the target field is compared against.
- value bool
- Boolean value the target field is compared against.
- value Boolean
- Boolean value the target field is compared against.
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