1. Packages
  2. Grafana Cloud
  3. API Docs
  4. assert
  5. TraceConfig
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
grafana logo
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse

    Manages Knowledge Graph Trace Configuration through Grafana API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const production = new grafana.assert.TraceConfig("production", {
        name: "production",
        priority: 1000,
        defaultConfig: false,
        dataSourceUid: "grafanacloud-traces",
        matches: [
            {
                property: "asserts_entity_type",
                op: "=",
                values: ["Service"],
            },
            {
                property: "deployment_environment",
                op: "=",
                values: [
                    "production",
                    "staging",
                ],
            },
            {
                property: "asserts_site",
                op: "=",
                values: [
                    "us-east-1",
                    "us-west-2",
                ],
            },
        ],
        entityPropertyToTraceLabelMapping: {
            cluster: "resource.k8s.cluster.name",
            namespace: "resource.k8s.namespace",
            container: "resource.container.name",
            otel_service: "resource.service.name",
            otel_namespace: "resource.service.namespace",
        },
    });
    const development = new grafana.assert.TraceConfig("development", {
        name: "development",
        priority: 2000,
        defaultConfig: false,
        dataSourceUid: "grafanacloud-traces",
        matches: [
            {
                property: "asserts_entity_type",
                op: "=",
                values: ["Service"],
            },
            {
                property: "deployment_environment",
                op: "=",
                values: [
                    "development",
                    "testing",
                ],
            },
            {
                property: "asserts_site",
                op: "=",
                values: ["us-east-1"],
            },
            {
                property: "service",
                op: "=",
                values: ["my sample api"],
            },
        ],
        entityPropertyToTraceLabelMapping: {
            cluster: "resource.k8s.cluster.name",
            namespace: "resource.k8s.namespace",
            container: "resource.container.name",
            otel_service: "resource.service.name",
            otel_namespace: "resource.service.namespace",
            pod: "span.k8s.pod.name",
        },
    });
    const minimal = new grafana.assert.TraceConfig("minimal", {
        name: "minimal",
        priority: 3000,
        dataSourceUid: "tempo-minimal",
        matches: [{
            property: "asserts_entity_type",
            op: "IS NOT NULL",
        }],
        entityPropertyToTraceLabelMapping: {
            cluster: "resource.k8s.cluster.name",
            otel_service: "resource.service.name",
            otel_namespace: "resource.service.namespace",
        },
    });
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    production = grafana.assert_.TraceConfig("production",
        name="production",
        priority=1000,
        default_config=False,
        data_source_uid="grafanacloud-traces",
        matches=[
            {
                "property": "asserts_entity_type",
                "op": "=",
                "values": ["Service"],
            },
            {
                "property": "deployment_environment",
                "op": "=",
                "values": [
                    "production",
                    "staging",
                ],
            },
            {
                "property": "asserts_site",
                "op": "=",
                "values": [
                    "us-east-1",
                    "us-west-2",
                ],
            },
        ],
        entity_property_to_trace_label_mapping={
            "cluster": "resource.k8s.cluster.name",
            "namespace": "resource.k8s.namespace",
            "container": "resource.container.name",
            "otel_service": "resource.service.name",
            "otel_namespace": "resource.service.namespace",
        })
    development = grafana.assert_.TraceConfig("development",
        name="development",
        priority=2000,
        default_config=False,
        data_source_uid="grafanacloud-traces",
        matches=[
            {
                "property": "asserts_entity_type",
                "op": "=",
                "values": ["Service"],
            },
            {
                "property": "deployment_environment",
                "op": "=",
                "values": [
                    "development",
                    "testing",
                ],
            },
            {
                "property": "asserts_site",
                "op": "=",
                "values": ["us-east-1"],
            },
            {
                "property": "service",
                "op": "=",
                "values": ["my sample api"],
            },
        ],
        entity_property_to_trace_label_mapping={
            "cluster": "resource.k8s.cluster.name",
            "namespace": "resource.k8s.namespace",
            "container": "resource.container.name",
            "otel_service": "resource.service.name",
            "otel_namespace": "resource.service.namespace",
            "pod": "span.k8s.pod.name",
        })
    minimal = grafana.assert_.TraceConfig("minimal",
        name="minimal",
        priority=3000,
        data_source_uid="tempo-minimal",
        matches=[{
            "property": "asserts_entity_type",
            "op": "IS NOT NULL",
        }],
        entity_property_to_trace_label_mapping={
            "cluster": "resource.k8s.cluster.name",
            "otel_service": "resource.service.name",
            "otel_namespace": "resource.service.namespace",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/assert"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := assert.NewTraceConfig(ctx, "production", &assert.TraceConfigArgs{
    			Name:          pulumi.String("production"),
    			Priority:      pulumi.Int(1000),
    			DefaultConfig: pulumi.Bool(false),
    			DataSourceUid: pulumi.String("grafanacloud-traces"),
    			Matches: assert.TraceConfigMatchArray{
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("asserts_entity_type"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("Service"),
    					},
    				},
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("deployment_environment"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("production"),
    						pulumi.String("staging"),
    					},
    				},
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("asserts_site"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("us-east-1"),
    						pulumi.String("us-west-2"),
    					},
    				},
    			},
    			EntityPropertyToTraceLabelMapping: pulumi.StringMap{
    				"cluster":        pulumi.String("resource.k8s.cluster.name"),
    				"namespace":      pulumi.String("resource.k8s.namespace"),
    				"container":      pulumi.String("resource.container.name"),
    				"otel_service":   pulumi.String("resource.service.name"),
    				"otel_namespace": pulumi.String("resource.service.namespace"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = assert.NewTraceConfig(ctx, "development", &assert.TraceConfigArgs{
    			Name:          pulumi.String("development"),
    			Priority:      pulumi.Int(2000),
    			DefaultConfig: pulumi.Bool(false),
    			DataSourceUid: pulumi.String("grafanacloud-traces"),
    			Matches: assert.TraceConfigMatchArray{
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("asserts_entity_type"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("Service"),
    					},
    				},
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("deployment_environment"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("development"),
    						pulumi.String("testing"),
    					},
    				},
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("asserts_site"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("us-east-1"),
    					},
    				},
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("service"),
    					Op:       pulumi.String("="),
    					Values: pulumi.StringArray{
    						pulumi.String("my sample api"),
    					},
    				},
    			},
    			EntityPropertyToTraceLabelMapping: pulumi.StringMap{
    				"cluster":        pulumi.String("resource.k8s.cluster.name"),
    				"namespace":      pulumi.String("resource.k8s.namespace"),
    				"container":      pulumi.String("resource.container.name"),
    				"otel_service":   pulumi.String("resource.service.name"),
    				"otel_namespace": pulumi.String("resource.service.namespace"),
    				"pod":            pulumi.String("span.k8s.pod.name"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = assert.NewTraceConfig(ctx, "minimal", &assert.TraceConfigArgs{
    			Name:          pulumi.String("minimal"),
    			Priority:      pulumi.Int(3000),
    			DataSourceUid: pulumi.String("tempo-minimal"),
    			Matches: assert.TraceConfigMatchArray{
    				&assert.TraceConfigMatchArgs{
    					Property: pulumi.String("asserts_entity_type"),
    					Op:       pulumi.String("IS NOT NULL"),
    				},
    			},
    			EntityPropertyToTraceLabelMapping: pulumi.StringMap{
    				"cluster":        pulumi.String("resource.k8s.cluster.name"),
    				"otel_service":   pulumi.String("resource.service.name"),
    				"otel_namespace": pulumi.String("resource.service.namespace"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var production = new Grafana.Assert.TraceConfig("production", new()
        {
            Name = "production",
            Priority = 1000,
            DefaultConfig = false,
            DataSourceUid = "grafanacloud-traces",
            Matches = new[]
            {
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "asserts_entity_type",
                    Op = "=",
                    Values = new[]
                    {
                        "Service",
                    },
                },
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "deployment_environment",
                    Op = "=",
                    Values = new[]
                    {
                        "production",
                        "staging",
                    },
                },
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "asserts_site",
                    Op = "=",
                    Values = new[]
                    {
                        "us-east-1",
                        "us-west-2",
                    },
                },
            },
            EntityPropertyToTraceLabelMapping = 
            {
                { "cluster", "resource.k8s.cluster.name" },
                { "namespace", "resource.k8s.namespace" },
                { "container", "resource.container.name" },
                { "otel_service", "resource.service.name" },
                { "otel_namespace", "resource.service.namespace" },
            },
        });
    
        var development = new Grafana.Assert.TraceConfig("development", new()
        {
            Name = "development",
            Priority = 2000,
            DefaultConfig = false,
            DataSourceUid = "grafanacloud-traces",
            Matches = new[]
            {
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "asserts_entity_type",
                    Op = "=",
                    Values = new[]
                    {
                        "Service",
                    },
                },
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "deployment_environment",
                    Op = "=",
                    Values = new[]
                    {
                        "development",
                        "testing",
                    },
                },
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "asserts_site",
                    Op = "=",
                    Values = new[]
                    {
                        "us-east-1",
                    },
                },
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "service",
                    Op = "=",
                    Values = new[]
                    {
                        "my sample api",
                    },
                },
            },
            EntityPropertyToTraceLabelMapping = 
            {
                { "cluster", "resource.k8s.cluster.name" },
                { "namespace", "resource.k8s.namespace" },
                { "container", "resource.container.name" },
                { "otel_service", "resource.service.name" },
                { "otel_namespace", "resource.service.namespace" },
                { "pod", "span.k8s.pod.name" },
            },
        });
    
        var minimal = new Grafana.Assert.TraceConfig("minimal", new()
        {
            Name = "minimal",
            Priority = 3000,
            DataSourceUid = "tempo-minimal",
            Matches = new[]
            {
                new Grafana.Assert.Inputs.TraceConfigMatchArgs
                {
                    Property = "asserts_entity_type",
                    Op = "IS NOT NULL",
                },
            },
            EntityPropertyToTraceLabelMapping = 
            {
                { "cluster", "resource.k8s.cluster.name" },
                { "otel_service", "resource.service.name" },
                { "otel_namespace", "resource.service.namespace" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.assert.TraceConfig;
    import com.pulumi.grafana.assert.TraceConfigArgs;
    import com.pulumi.grafana.assert.inputs.TraceConfigMatchArgs;
    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 production = new TraceConfig("production", TraceConfigArgs.builder()
                .name("production")
                .priority(1000)
                .defaultConfig(false)
                .dataSourceUid("grafanacloud-traces")
                .matches(            
                    TraceConfigMatchArgs.builder()
                        .property("asserts_entity_type")
                        .op("=")
                        .values("Service")
                        .build(),
                    TraceConfigMatchArgs.builder()
                        .property("deployment_environment")
                        .op("=")
                        .values(                    
                            "production",
                            "staging")
                        .build(),
                    TraceConfigMatchArgs.builder()
                        .property("asserts_site")
                        .op("=")
                        .values(                    
                            "us-east-1",
                            "us-west-2")
                        .build())
                .entityPropertyToTraceLabelMapping(Map.ofEntries(
                    Map.entry("cluster", "resource.k8s.cluster.name"),
                    Map.entry("namespace", "resource.k8s.namespace"),
                    Map.entry("container", "resource.container.name"),
                    Map.entry("otel_service", "resource.service.name"),
                    Map.entry("otel_namespace", "resource.service.namespace")
                ))
                .build());
    
            var development = new TraceConfig("development", TraceConfigArgs.builder()
                .name("development")
                .priority(2000)
                .defaultConfig(false)
                .dataSourceUid("grafanacloud-traces")
                .matches(            
                    TraceConfigMatchArgs.builder()
                        .property("asserts_entity_type")
                        .op("=")
                        .values("Service")
                        .build(),
                    TraceConfigMatchArgs.builder()
                        .property("deployment_environment")
                        .op("=")
                        .values(                    
                            "development",
                            "testing")
                        .build(),
                    TraceConfigMatchArgs.builder()
                        .property("asserts_site")
                        .op("=")
                        .values("us-east-1")
                        .build(),
                    TraceConfigMatchArgs.builder()
                        .property("service")
                        .op("=")
                        .values("my sample api")
                        .build())
                .entityPropertyToTraceLabelMapping(Map.ofEntries(
                    Map.entry("cluster", "resource.k8s.cluster.name"),
                    Map.entry("namespace", "resource.k8s.namespace"),
                    Map.entry("container", "resource.container.name"),
                    Map.entry("otel_service", "resource.service.name"),
                    Map.entry("otel_namespace", "resource.service.namespace"),
                    Map.entry("pod", "span.k8s.pod.name")
                ))
                .build());
    
            var minimal = new TraceConfig("minimal", TraceConfigArgs.builder()
                .name("minimal")
                .priority(3000)
                .dataSourceUid("tempo-minimal")
                .matches(TraceConfigMatchArgs.builder()
                    .property("asserts_entity_type")
                    .op("IS NOT NULL")
                    .build())
                .entityPropertyToTraceLabelMapping(Map.ofEntries(
                    Map.entry("cluster", "resource.k8s.cluster.name"),
                    Map.entry("otel_service", "resource.service.name"),
                    Map.entry("otel_namespace", "resource.service.namespace")
                ))
                .build());
    
        }
    }
    
    resources:
      production:
        type: grafana:assert:TraceConfig
        properties:
          name: production
          priority: 1000
          defaultConfig: false
          dataSourceUid: grafanacloud-traces
          matches:
            - property: asserts_entity_type
              op: =
              values:
                - Service
            - property: deployment_environment
              op: =
              values:
                - production
                - staging
            - property: asserts_site
              op: =
              values:
                - us-east-1
                - us-west-2
          entityPropertyToTraceLabelMapping:
            cluster: resource.k8s.cluster.name
            namespace: resource.k8s.namespace
            container: resource.container.name
            otel_service: resource.service.name
            otel_namespace: resource.service.namespace
      development:
        type: grafana:assert:TraceConfig
        properties:
          name: development
          priority: 2000
          defaultConfig: false
          dataSourceUid: grafanacloud-traces
          matches:
            - property: asserts_entity_type
              op: =
              values:
                - Service
            - property: deployment_environment
              op: =
              values:
                - development
                - testing
            - property: asserts_site
              op: =
              values:
                - us-east-1
            - property: service
              op: =
              values:
                - my sample api
          entityPropertyToTraceLabelMapping:
            cluster: resource.k8s.cluster.name
            namespace: resource.k8s.namespace
            container: resource.container.name
            otel_service: resource.service.name
            otel_namespace: resource.service.namespace
            pod: span.k8s.pod.name
      minimal:
        type: grafana:assert:TraceConfig
        properties:
          name: minimal
          priority: 3000
          dataSourceUid: tempo-minimal
          matches:
            - property: asserts_entity_type
              op: IS NOT NULL
          entityPropertyToTraceLabelMapping:
            cluster: resource.k8s.cluster.name
            otel_service: resource.service.name
            otel_namespace: resource.service.namespace
    

    Create TraceConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TraceConfig(name: string, args: TraceConfigArgs, opts?: CustomResourceOptions);
    @overload
    def TraceConfig(resource_name: str,
                    args: TraceConfigArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def TraceConfig(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    data_source_uid: Optional[str] = None,
                    default_config: Optional[bool] = None,
                    priority: Optional[int] = None,
                    entity_property_to_trace_label_mapping: Optional[Mapping[str, str]] = None,
                    matches: Optional[Sequence[TraceConfigMatchArgs]] = None,
                    name: Optional[str] = None)
    func NewTraceConfig(ctx *Context, name string, args TraceConfigArgs, opts ...ResourceOption) (*TraceConfig, error)
    public TraceConfig(string name, TraceConfigArgs args, CustomResourceOptions? opts = null)
    public TraceConfig(String name, TraceConfigArgs args)
    public TraceConfig(String name, TraceConfigArgs args, CustomResourceOptions options)
    
    type: grafana:assert:TraceConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TraceConfigArgs
    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 TraceConfigArgs
    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 TraceConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TraceConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TraceConfigArgs
    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 traceConfigResource = new Grafana.Assert.TraceConfig("traceConfigResource", new()
    {
        DataSourceUid = "string",
        DefaultConfig = false,
        Priority = 0,
        EntityPropertyToTraceLabelMapping = 
        {
            { "string", "string" },
        },
        Matches = new[]
        {
            new Grafana.Assert.Inputs.TraceConfigMatchArgs
            {
                Op = "string",
                Property = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
    });
    
    example, err := assert.NewTraceConfig(ctx, "traceConfigResource", &assert.TraceConfigArgs{
    	DataSourceUid: pulumi.String("string"),
    	DefaultConfig: pulumi.Bool(false),
    	Priority:      pulumi.Int(0),
    	EntityPropertyToTraceLabelMapping: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Matches: assert.TraceConfigMatchArray{
    		&assert.TraceConfigMatchArgs{
    			Op:       pulumi.String("string"),
    			Property: pulumi.String("string"),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var traceConfigResource = new TraceConfig("traceConfigResource", TraceConfigArgs.builder()
        .dataSourceUid("string")
        .defaultConfig(false)
        .priority(0)
        .entityPropertyToTraceLabelMapping(Map.of("string", "string"))
        .matches(TraceConfigMatchArgs.builder()
            .op("string")
            .property("string")
            .values("string")
            .build())
        .name("string")
        .build());
    
    trace_config_resource = grafana.assert_.TraceConfig("traceConfigResource",
        data_source_uid="string",
        default_config=False,
        priority=0,
        entity_property_to_trace_label_mapping={
            "string": "string",
        },
        matches=[{
            "op": "string",
            "property": "string",
            "values": ["string"],
        }],
        name="string")
    
    const traceConfigResource = new grafana.assert.TraceConfig("traceConfigResource", {
        dataSourceUid: "string",
        defaultConfig: false,
        priority: 0,
        entityPropertyToTraceLabelMapping: {
            string: "string",
        },
        matches: [{
            op: "string",
            property: "string",
            values: ["string"],
        }],
        name: "string",
    });
    
    type: grafana:assert:TraceConfig
    properties:
        dataSourceUid: string
        defaultConfig: false
        entityPropertyToTraceLabelMapping:
            string: string
        matches:
            - op: string
              property: string
              values:
                - string
        name: string
        priority: 0
    

    TraceConfig 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 TraceConfig resource accepts the following input properties:

    DataSourceUid string
    DataSource to be queried (e.g., a Tempo instance).
    DefaultConfig bool
    Is it the default config, therefore undeletable?
    Priority int
    Priority of the trace configuration. A lower number means a higher priority.
    EntityPropertyToTraceLabelMapping Dictionary<string, string>
    Mapping of entity properties to trace labels.
    Matches List<Pulumiverse.Grafana.Assert.Inputs.TraceConfigMatch>
    List of match rules for entity properties.
    Name string
    The name of the trace configuration.
    DataSourceUid string
    DataSource to be queried (e.g., a Tempo instance).
    DefaultConfig bool
    Is it the default config, therefore undeletable?
    Priority int
    Priority of the trace configuration. A lower number means a higher priority.
    EntityPropertyToTraceLabelMapping map[string]string
    Mapping of entity properties to trace labels.
    Matches []TraceConfigMatchArgs
    List of match rules for entity properties.
    Name string
    The name of the trace configuration.
    dataSourceUid String
    DataSource to be queried (e.g., a Tempo instance).
    defaultConfig Boolean
    Is it the default config, therefore undeletable?
    priority Integer
    Priority of the trace configuration. A lower number means a higher priority.
    entityPropertyToTraceLabelMapping Map<String,String>
    Mapping of entity properties to trace labels.
    matches List<TraceConfigMatch>
    List of match rules for entity properties.
    name String
    The name of the trace configuration.
    dataSourceUid string
    DataSource to be queried (e.g., a Tempo instance).
    defaultConfig boolean
    Is it the default config, therefore undeletable?
    priority number
    Priority of the trace configuration. A lower number means a higher priority.
    entityPropertyToTraceLabelMapping {[key: string]: string}
    Mapping of entity properties to trace labels.
    matches TraceConfigMatch[]
    List of match rules for entity properties.
    name string
    The name of the trace configuration.
    data_source_uid str
    DataSource to be queried (e.g., a Tempo instance).
    default_config bool
    Is it the default config, therefore undeletable?
    priority int
    Priority of the trace configuration. A lower number means a higher priority.
    entity_property_to_trace_label_mapping Mapping[str, str]
    Mapping of entity properties to trace labels.
    matches Sequence[TraceConfigMatchArgs]
    List of match rules for entity properties.
    name str
    The name of the trace configuration.
    dataSourceUid String
    DataSource to be queried (e.g., a Tempo instance).
    defaultConfig Boolean
    Is it the default config, therefore undeletable?
    priority Number
    Priority of the trace configuration. A lower number means a higher priority.
    entityPropertyToTraceLabelMapping Map<String>
    Mapping of entity properties to trace labels.
    matches List<Property Map>
    List of match rules for entity properties.
    name String
    The name of the trace configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TraceConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TraceConfig Resource

    Get an existing TraceConfig 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?: TraceConfigState, opts?: CustomResourceOptions): TraceConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_source_uid: Optional[str] = None,
            default_config: Optional[bool] = None,
            entity_property_to_trace_label_mapping: Optional[Mapping[str, str]] = None,
            matches: Optional[Sequence[TraceConfigMatchArgs]] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None) -> TraceConfig
    func GetTraceConfig(ctx *Context, name string, id IDInput, state *TraceConfigState, opts ...ResourceOption) (*TraceConfig, error)
    public static TraceConfig Get(string name, Input<string> id, TraceConfigState? state, CustomResourceOptions? opts = null)
    public static TraceConfig get(String name, Output<String> id, TraceConfigState state, CustomResourceOptions options)
    resources:  _:    type: grafana:assert:TraceConfig    get:      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.
    The following state arguments are supported:
    DataSourceUid string
    DataSource to be queried (e.g., a Tempo instance).
    DefaultConfig bool
    Is it the default config, therefore undeletable?
    EntityPropertyToTraceLabelMapping Dictionary<string, string>
    Mapping of entity properties to trace labels.
    Matches List<Pulumiverse.Grafana.Assert.Inputs.TraceConfigMatch>
    List of match rules for entity properties.
    Name string
    The name of the trace configuration.
    Priority int
    Priority of the trace configuration. A lower number means a higher priority.
    DataSourceUid string
    DataSource to be queried (e.g., a Tempo instance).
    DefaultConfig bool
    Is it the default config, therefore undeletable?
    EntityPropertyToTraceLabelMapping map[string]string
    Mapping of entity properties to trace labels.
    Matches []TraceConfigMatchArgs
    List of match rules for entity properties.
    Name string
    The name of the trace configuration.
    Priority int
    Priority of the trace configuration. A lower number means a higher priority.
    dataSourceUid String
    DataSource to be queried (e.g., a Tempo instance).
    defaultConfig Boolean
    Is it the default config, therefore undeletable?
    entityPropertyToTraceLabelMapping Map<String,String>
    Mapping of entity properties to trace labels.
    matches List<TraceConfigMatch>
    List of match rules for entity properties.
    name String
    The name of the trace configuration.
    priority Integer
    Priority of the trace configuration. A lower number means a higher priority.
    dataSourceUid string
    DataSource to be queried (e.g., a Tempo instance).
    defaultConfig boolean
    Is it the default config, therefore undeletable?
    entityPropertyToTraceLabelMapping {[key: string]: string}
    Mapping of entity properties to trace labels.
    matches TraceConfigMatch[]
    List of match rules for entity properties.
    name string
    The name of the trace configuration.
    priority number
    Priority of the trace configuration. A lower number means a higher priority.
    data_source_uid str
    DataSource to be queried (e.g., a Tempo instance).
    default_config bool
    Is it the default config, therefore undeletable?
    entity_property_to_trace_label_mapping Mapping[str, str]
    Mapping of entity properties to trace labels.
    matches Sequence[TraceConfigMatchArgs]
    List of match rules for entity properties.
    name str
    The name of the trace configuration.
    priority int
    Priority of the trace configuration. A lower number means a higher priority.
    dataSourceUid String
    DataSource to be queried (e.g., a Tempo instance).
    defaultConfig Boolean
    Is it the default config, therefore undeletable?
    entityPropertyToTraceLabelMapping Map<String>
    Mapping of entity properties to trace labels.
    matches List<Property Map>
    List of match rules for entity properties.
    name String
    The name of the trace configuration.
    priority Number
    Priority of the trace configuration. A lower number means a higher priority.

    Supporting Types

    TraceConfigMatch, TraceConfigMatchArgs

    Op string
    Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
    Property string
    Entity property to match.
    Values List<string>
    Values to match against.
    Op string
    Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
    Property string
    Entity property to match.
    Values []string
    Values to match against.
    op String
    Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
    property String
    Entity property to match.
    values List<String>
    Values to match against.
    op string
    Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
    property string
    Entity property to match.
    values string[]
    Values to match against.
    op str
    Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
    property str
    Entity property to match.
    values Sequence[str]
    Values to match against.
    op String
    Operation to use for matching. One of: =, <>, <, >, <=, >=, IS NULL, IS NOT NULL, STARTS WITH, CONTAINS.
    property String
    Entity property to match.
    values List<String>
    Values to match against.

    Import

    $ pulumi import grafana:assert/traceConfig:TraceConfig name "{{ name }}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Viewing docs for Grafana v2.21.0
    published on Tuesday, Mar 3, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.