published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
Defines a synthetic label whose value is derived from existing metric labels or trace span tags via mapping or constructed-value rules. The derived label can then be referenced in queries as if it were a real label on the source series.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var tier = new Pulumi.DerivedLabel("tier", new()
{
Description = "Derives a 'tier' label (read/write/admin) from the instance label",
LabelName = "tier",
MetricLabel = new Pulumi.Inputs.DerivedLabelMetricLabelArgs
{
ConstructedLabel = new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelArgs
{
ValueDefinitions = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
{
Filters = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
{
Name = "instance",
ValueGlob = "reader-*",
},
},
Value = "read",
},
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
{
Filters = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
{
Name = "instance",
ValueGlob = "writer-*",
},
},
Value = "write",
},
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
{
Filters = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
{
Name = "instance",
ValueGlob = "admin-*",
},
},
Value = "admin",
},
},
},
},
Name = "Tier from instance name",
Slug = "tier-from-instance",
});
});
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.NewDerivedLabel(ctx, "tier", &chronosphere.DerivedLabelArgs{
Description: pulumi.String("Derives a 'tier' label (read/write/admin) from the instance label"),
LabelName: pulumi.String("tier"),
MetricLabel: &chronosphere.DerivedLabelMetricLabelArgs{
ConstructedLabel: &chronosphere.DerivedLabelMetricLabelConstructedLabelArgs{
ValueDefinitions: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArray{
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs{
Filters: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArray{
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs{
Name: pulumi.String("instance"),
ValueGlob: pulumi.String("reader-*"),
},
},
Value: pulumi.String("read"),
},
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs{
Filters: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArray{
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs{
Name: pulumi.String("instance"),
ValueGlob: pulumi.String("writer-*"),
},
},
Value: pulumi.String("write"),
},
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs{
Filters: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArray{
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs{
Name: pulumi.String("instance"),
ValueGlob: pulumi.String("admin-*"),
},
},
Value: pulumi.String("admin"),
},
},
},
},
Name: pulumi.String("Tier from instance name"),
Slug: pulumi.String("tier-from-instance"),
})
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.DerivedLabel;
import com.pulumi.chronosphere.DerivedLabelArgs;
import com.pulumi.chronosphere.inputs.DerivedLabelMetricLabelArgs;
import com.pulumi.chronosphere.inputs.DerivedLabelMetricLabelConstructedLabelArgs;
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 tier = new DerivedLabel("tier", DerivedLabelArgs.builder()
.description("Derives a 'tier' label (read/write/admin) from the instance label")
.labelName("tier")
.metricLabel(DerivedLabelMetricLabelArgs.builder()
.constructedLabel(DerivedLabelMetricLabelConstructedLabelArgs.builder()
.valueDefinitions(
DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs.builder()
.filters(DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs.builder()
.name("instance")
.valueGlob("reader-*")
.build())
.value("read")
.build(),
DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs.builder()
.filters(DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs.builder()
.name("instance")
.valueGlob("writer-*")
.build())
.value("write")
.build(),
DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs.builder()
.filters(DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs.builder()
.name("instance")
.valueGlob("admin-*")
.build())
.value("admin")
.build())
.build())
.build())
.name("Tier from instance name")
.slug("tier-from-instance")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const tier = new chronosphere.DerivedLabel("tier", {
description: "Derives a 'tier' label (read/write/admin) from the instance label",
labelName: "tier",
metricLabel: {
constructedLabel: {
valueDefinitions: [
{
filters: [{
name: "instance",
valueGlob: "reader-*",
}],
value: "read",
},
{
filters: [{
name: "instance",
valueGlob: "writer-*",
}],
value: "write",
},
{
filters: [{
name: "instance",
valueGlob: "admin-*",
}],
value: "admin",
},
],
},
},
name: "Tier from instance name",
slug: "tier-from-instance",
});
import pulumi
import pulumi_chronosphere as chronosphere
tier = chronosphere.DerivedLabel("tier",
description="Derives a 'tier' label (read/write/admin) from the instance label",
label_name="tier",
metric_label=chronosphere.DerivedLabelMetricLabelArgs(
constructed_label=chronosphere.DerivedLabelMetricLabelConstructedLabelArgs(
value_definitions=[
chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs(
filters=[chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs(
name="instance",
value_glob="reader-*",
)],
value="read",
),
chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs(
filters=[chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs(
name="instance",
value_glob="writer-*",
)],
value="write",
),
chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs(
filters=[chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs(
name="instance",
value_glob="admin-*",
)],
value="admin",
),
],
),
),
name="Tier from instance name",
slug="tier-from-instance")
resources:
tier:
type: chronosphere:DerivedLabel
properties:
description: Derives a 'tier' label (read/write/admin) from the instance label
labelName: tier
metricLabel:
constructedLabel:
valueDefinitions:
- filters:
- name: instance
valueGlob: reader-*
value: read
- filters:
- name: instance
valueGlob: writer-*
value: write
- filters:
- name: instance
valueGlob: admin-*
value: admin
name: Tier from instance name
slug: tier-from-instance
Create DerivedLabel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DerivedLabel(name: string, args: DerivedLabelArgs, opts?: CustomResourceOptions);@overload
def DerivedLabel(resource_name: str,
args: DerivedLabelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DerivedLabel(resource_name: str,
opts: Optional[ResourceOptions] = None,
label_name: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
existing_label_policy: Optional[str] = None,
metric_label: Optional[DerivedLabelMetricLabelArgs] = None,
slug: Optional[str] = None,
span_tag: Optional[DerivedLabelSpanTagArgs] = None)func NewDerivedLabel(ctx *Context, name string, args DerivedLabelArgs, opts ...ResourceOption) (*DerivedLabel, error)public DerivedLabel(string name, DerivedLabelArgs args, CustomResourceOptions? opts = null)
public DerivedLabel(String name, DerivedLabelArgs args)
public DerivedLabel(String name, DerivedLabelArgs args, CustomResourceOptions options)
type: chronosphere:DerivedLabel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "chronosphere_derivedlabel" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DerivedLabelArgs
- 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 DerivedLabelArgs
- 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 DerivedLabelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DerivedLabelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DerivedLabelArgs
- 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 derivedLabelResource = new Pulumi.DerivedLabel("derivedLabelResource", new()
{
LabelName = "string",
Name = "string",
Description = "string",
ExistingLabelPolicy = "string",
MetricLabel = new Pulumi.Inputs.DerivedLabelMetricLabelArgs
{
ConstructedLabel = new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelArgs
{
ValueDefinitions = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
{
Filters = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
{
Name = "string",
ValueGlob = "string",
},
},
Value = "string",
},
},
},
MappingLabel = new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelArgs
{
NameMappings = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelNameMappingArgs
{
Filters = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs
{
Name = "string",
ValueGlob = "string",
},
},
SourceLabel = "string",
ValueMappings = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs
{
SourceValueGlobs = new[]
{
"string",
},
TargetValue = "string",
},
},
},
},
ValueMappings = new[]
{
new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelValueMappingArgs
{
SourceValueGlobs = new[]
{
"string",
},
TargetValue = "string",
},
},
},
},
Slug = "string",
SpanTag = new Pulumi.Inputs.DerivedLabelSpanTagArgs
{
NameMappings = new[]
{
new Pulumi.Inputs.DerivedLabelSpanTagNameMappingArgs
{
SourceTag = "string",
},
},
},
});
example, err := chronosphere.NewDerivedLabel(ctx, "derivedLabelResource", &chronosphere.DerivedLabelArgs{
LabelName: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
ExistingLabelPolicy: pulumi.String("string"),
MetricLabel: &chronosphere.DerivedLabelMetricLabelArgs{
ConstructedLabel: &chronosphere.DerivedLabelMetricLabelConstructedLabelArgs{
ValueDefinitions: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArray{
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs{
Filters: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArray{
&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs{
Name: pulumi.String("string"),
ValueGlob: pulumi.String("string"),
},
},
Value: pulumi.String("string"),
},
},
},
MappingLabel: &chronosphere.DerivedLabelMetricLabelMappingLabelArgs{
NameMappings: chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingArray{
&chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingArgs{
Filters: chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingFilterArray{
&chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs{
Name: pulumi.String("string"),
ValueGlob: pulumi.String("string"),
},
},
SourceLabel: pulumi.String("string"),
ValueMappings: chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArray{
&chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs{
SourceValueGlobs: pulumi.StringArray{
pulumi.String("string"),
},
TargetValue: pulumi.String("string"),
},
},
},
},
ValueMappings: chronosphere.DerivedLabelMetricLabelMappingLabelValueMappingArray{
&chronosphere.DerivedLabelMetricLabelMappingLabelValueMappingArgs{
SourceValueGlobs: pulumi.StringArray{
pulumi.String("string"),
},
TargetValue: pulumi.String("string"),
},
},
},
},
Slug: pulumi.String("string"),
SpanTag: &chronosphere.DerivedLabelSpanTagArgs{
NameMappings: chronosphere.DerivedLabelSpanTagNameMappingArray{
&chronosphere.DerivedLabelSpanTagNameMappingArgs{
SourceTag: pulumi.String("string"),
},
},
},
})
resource "chronosphere_derivedlabel" "derivedLabelResource" {
label_name = "string"
name = "string"
description = "string"
existing_label_policy = "string"
metric_label = {
constructed_label = {
value_definitions = [{
"filters" = [{
"name" = "string"
"valueGlob" = "string"
}]
"value" = "string"
}]
}
mapping_label = {
name_mappings = [{
"filters" = [{
"name" = "string"
"valueGlob" = "string"
}]
"sourceLabel" = "string"
"valueMappings" = [{
"sourceValueGlobs" = ["string"]
"targetValue" = "string"
}]
}]
value_mappings = [{
"sourceValueGlobs" = ["string"]
"targetValue" = "string"
}]
}
}
slug = "string"
span_tag = {
name_mappings = [{
"sourceTag" = "string"
}]
}
}
var derivedLabelResource = new DerivedLabel("derivedLabelResource", DerivedLabelArgs.builder()
.labelName("string")
.name("string")
.description("string")
.existingLabelPolicy("string")
.metricLabel(DerivedLabelMetricLabelArgs.builder()
.constructedLabel(DerivedLabelMetricLabelConstructedLabelArgs.builder()
.valueDefinitions(DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs.builder()
.filters(DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs.builder()
.name("string")
.valueGlob("string")
.build())
.value("string")
.build())
.build())
.mappingLabel(DerivedLabelMetricLabelMappingLabelArgs.builder()
.nameMappings(DerivedLabelMetricLabelMappingLabelNameMappingArgs.builder()
.filters(DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs.builder()
.name("string")
.valueGlob("string")
.build())
.sourceLabel("string")
.valueMappings(DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs.builder()
.sourceValueGlobs("string")
.targetValue("string")
.build())
.build())
.valueMappings(DerivedLabelMetricLabelMappingLabelValueMappingArgs.builder()
.sourceValueGlobs("string")
.targetValue("string")
.build())
.build())
.build())
.slug("string")
.spanTag(DerivedLabelSpanTagArgs.builder()
.nameMappings(DerivedLabelSpanTagNameMappingArgs.builder()
.sourceTag("string")
.build())
.build())
.build());
derived_label_resource = chronosphere.DerivedLabel("derivedLabelResource",
label_name="string",
name="string",
description="string",
existing_label_policy="string",
metric_label={
"constructed_label": {
"value_definitions": [{
"filters": [{
"name": "string",
"value_glob": "string",
}],
"value": "string",
}],
},
"mapping_label": {
"name_mappings": [{
"filters": [{
"name": "string",
"value_glob": "string",
}],
"source_label": "string",
"value_mappings": [{
"source_value_globs": ["string"],
"target_value": "string",
}],
}],
"value_mappings": [{
"source_value_globs": ["string"],
"target_value": "string",
}],
},
},
slug="string",
span_tag={
"name_mappings": [{
"source_tag": "string",
}],
})
const derivedLabelResource = new chronosphere.DerivedLabel("derivedLabelResource", {
labelName: "string",
name: "string",
description: "string",
existingLabelPolicy: "string",
metricLabel: {
constructedLabel: {
valueDefinitions: [{
filters: [{
name: "string",
valueGlob: "string",
}],
value: "string",
}],
},
mappingLabel: {
nameMappings: [{
filters: [{
name: "string",
valueGlob: "string",
}],
sourceLabel: "string",
valueMappings: [{
sourceValueGlobs: ["string"],
targetValue: "string",
}],
}],
valueMappings: [{
sourceValueGlobs: ["string"],
targetValue: "string",
}],
},
},
slug: "string",
spanTag: {
nameMappings: [{
sourceTag: "string",
}],
},
});
type: chronosphere:DerivedLabel
properties:
description: string
existingLabelPolicy: string
labelName: string
metricLabel:
constructedLabel:
valueDefinitions:
- filters:
- name: string
valueGlob: string
value: string
mappingLabel:
nameMappings:
- filters:
- name: string
valueGlob: string
sourceLabel: string
valueMappings:
- sourceValueGlobs:
- string
targetValue: string
valueMappings:
- sourceValueGlobs:
- string
targetValue: string
name: string
slug: string
spanTag:
nameMappings:
- sourceTag: string
DerivedLabel 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 DerivedLabel resource accepts the following input properties:
- Label
Name string - Name of the label exposed on derived series. Must be unique across the system.
- Name string
- Name of the label to match.
- Description string
- Free-form description of the derived label.
- Existing
Label stringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- Metric
Label Chronosphere.Pulumi. Inputs. Derived Label Metric Label - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - Slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - Span
Tag Chronosphere.Pulumi. Inputs. Derived Label Span Tag - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- Label
Name string - Name of the label exposed on derived series. Must be unique across the system.
- Name string
- Name of the label to match.
- Description string
- Free-form description of the derived label.
- Existing
Label stringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- Metric
Label DerivedLabel Metric Label Args - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - Slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - Span
Tag DerivedLabel Span Tag Args - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- label_
name string - Name of the label exposed on derived series. Must be unique across the system.
- name string
- Name of the label to match.
- description string
- Free-form description of the derived label.
- existing_
label_ stringpolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- metric_
label object - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span_
tag object - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- label
Name String - Name of the label exposed on derived series. Must be unique across the system.
- name String
- Name of the label to match.
- description String
- Free-form description of the derived label.
- existing
Label StringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- metric
Label DerivedLabel Metric Label - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - slug String
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span
Tag DerivedLabel Span Tag - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- label
Name string - Name of the label exposed on derived series. Must be unique across the system.
- name string
- Name of the label to match.
- description string
- Free-form description of the derived label.
- existing
Label stringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- metric
Label DerivedLabel Metric Label - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span
Tag DerivedLabel Span Tag - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- label_
name str - Name of the label exposed on derived series. Must be unique across the system.
- name str
- Name of the label to match.
- description str
- Free-form description of the derived label.
- existing_
label_ strpolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- metric_
label DerivedLabel Metric Label Args - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - slug str
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span_
tag DerivedLabel Span Tag Args - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- label
Name String - Name of the label exposed on derived series. Must be unique across the system.
- name String
- Name of the label to match.
- description String
- Free-form description of the derived label.
- existing
Label StringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- metric
Label Property Map - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - slug String
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span
Tag Property Map - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
Outputs
All input properties are implicitly available as output properties. Additionally, the DerivedLabel 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 DerivedLabel Resource
Get an existing DerivedLabel 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?: DerivedLabelState, opts?: CustomResourceOptions): DerivedLabel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
existing_label_policy: Optional[str] = None,
label_name: Optional[str] = None,
metric_label: Optional[DerivedLabelMetricLabelArgs] = None,
name: Optional[str] = None,
slug: Optional[str] = None,
span_tag: Optional[DerivedLabelSpanTagArgs] = None) -> DerivedLabelfunc GetDerivedLabel(ctx *Context, name string, id IDInput, state *DerivedLabelState, opts ...ResourceOption) (*DerivedLabel, error)public static DerivedLabel Get(string name, Input<string> id, DerivedLabelState? state, CustomResourceOptions? opts = null)public static DerivedLabel get(String name, Output<String> id, DerivedLabelState state, CustomResourceOptions options)resources: _: type: chronosphere:DerivedLabel get: id: ${id}import {
to = chronosphere_derivedlabel.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.
- Description string
- Free-form description of the derived label.
- Existing
Label stringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- Label
Name string - Name of the label exposed on derived series. Must be unique across the system.
- Metric
Label Chronosphere.Pulumi. Inputs. Derived Label Metric Label - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - Name string
- Name of the label to match.
- Slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - Span
Tag Chronosphere.Pulumi. Inputs. Derived Label Span Tag - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- Description string
- Free-form description of the derived label.
- Existing
Label stringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- Label
Name string - Name of the label exposed on derived series. Must be unique across the system.
- Metric
Label DerivedLabel Metric Label Args - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - Name string
- Name of the label to match.
- Slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - Span
Tag DerivedLabel Span Tag Args - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- description string
- Free-form description of the derived label.
- existing_
label_ stringpolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- label_
name string - Name of the label exposed on derived series. Must be unique across the system.
- metric_
label object - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - name string
- Name of the label to match.
- slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span_
tag object - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- description String
- Free-form description of the derived label.
- existing
Label StringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- label
Name String - Name of the label exposed on derived series. Must be unique across the system.
- metric
Label DerivedLabel Metric Label - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - name String
- Name of the label to match.
- slug String
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span
Tag DerivedLabel Span Tag - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- description string
- Free-form description of the derived label.
- existing
Label stringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- label
Name string - Name of the label exposed on derived series. Must be unique across the system.
- metric
Label DerivedLabel Metric Label - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - name string
- Name of the label to match.
- slug string
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span
Tag DerivedLabel Span Tag - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- description str
- Free-form description of the derived label.
- existing_
label_ strpolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- label_
name str - Name of the label exposed on derived series. Must be unique across the system.
- metric_
label DerivedLabel Metric Label Args - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - name str
- Name of the label to match.
- slug str
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span_
tag DerivedLabel Span Tag Args - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
- description String
- Free-form description of the derived label.
- existing
Label StringPolicy - Policy controlling behavior when the target label already exists on the source series (e.g. keep, replace).
- label
Name String - Name of the label exposed on derived series. Must be unique across the system.
- metric
Label Property Map - Derives a label for metrics, either by constructing a new value from filters or by mapping an existing label. Mutually exclusive with
span_tag. - name String
- Name of the label to match.
- slug String
- Stable identifier for the derived label. Generated from
nameif omitted. Immutable after creation. - span
Tag Property Map - Derives a label for trace spans by mapping from an existing span tag. Mutually exclusive with
metric_label.
Supporting Types
DerivedLabelMetricLabel, DerivedLabelMetricLabelArgs
- Constructed
Label Chronosphere.Pulumi. Inputs. Derived Label Metric Label Constructed Label - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- Mapping
Label Chronosphere.Pulumi. Inputs. Derived Label Metric Label Mapping Label - Derives the label value by mapping from an existing source label, optionally translating its values.
- Constructed
Label DerivedLabel Metric Label Constructed Label - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- Mapping
Label DerivedLabel Metric Label Mapping Label - Derives the label value by mapping from an existing source label, optionally translating its values.
- constructed_
label object - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- mapping_
label object - Derives the label value by mapping from an existing source label, optionally translating its values.
- constructed
Label DerivedLabel Metric Label Constructed Label - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- mapping
Label DerivedLabel Metric Label Mapping Label - Derives the label value by mapping from an existing source label, optionally translating its values.
- constructed
Label DerivedLabel Metric Label Constructed Label - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- mapping
Label DerivedLabel Metric Label Mapping Label - Derives the label value by mapping from an existing source label, optionally translating its values.
- constructed_
label DerivedLabel Metric Label Constructed Label - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- mapping_
label DerivedLabel Metric Label Mapping Label - Derives the label value by mapping from an existing source label, optionally translating its values.
- constructed
Label Property Map - Constructs the derived label value from a list of value definitions, each gated by a filter on existing labels.
- mapping
Label Property Map - Derives the label value by mapping from an existing source label, optionally translating its values.
DerivedLabelMetricLabelConstructedLabel, DerivedLabelMetricLabelConstructedLabelArgs
- Value
Definitions List<Chronosphere.Pulumi. Inputs. Derived Label Metric Label Constructed Label Value Definition> - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
- Value
Definitions []DerivedLabel Metric Label Constructed Label Value Definition - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
- value_
definitions list(object) - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
- value
Definitions List<DerivedLabel Metric Label Constructed Label Value Definition> - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
- value
Definitions DerivedLabel Metric Label Constructed Label Value Definition[] - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
- value_
definitions Sequence[DerivedLabel Metric Label Constructed Label Value Definition] - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
- value
Definitions List<Property Map> - Ordered list of value definitions. The first definition whose filters match produces the derived label value.
DerivedLabelMetricLabelConstructedLabelValueDefinition, DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
- Filters
List<Chronosphere.
Pulumi. Inputs. Derived Label Metric Label Constructed Label Value Definition Filter> - Label filters that must all match for this value definition to apply.
- Value string
- Value assigned to the derived label when this definition's filters match.
- Filters
[]Derived
Label Metric Label Constructed Label Value Definition Filter - Label filters that must all match for this value definition to apply.
- Value string
- Value assigned to the derived label when this definition's filters match.
- filters list(object)
- Label filters that must all match for this value definition to apply.
- value string
- Value assigned to the derived label when this definition's filters match.
- filters
List<Derived
Label Metric Label Constructed Label Value Definition Filter> - Label filters that must all match for this value definition to apply.
- value String
- Value assigned to the derived label when this definition's filters match.
- filters
Derived
Label Metric Label Constructed Label Value Definition Filter[] - Label filters that must all match for this value definition to apply.
- value string
- Value assigned to the derived label when this definition's filters match.
- filters
Sequence[Derived
Label Metric Label Constructed Label Value Definition Filter] - Label filters that must all match for this value definition to apply.
- value str
- Value assigned to the derived label when this definition's filters match.
- filters List<Property Map>
- Label filters that must all match for this value definition to apply.
- value String
- Value assigned to the derived label when this definition's filters match.
DerivedLabelMetricLabelConstructedLabelValueDefinitionFilter, DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
- name string
- Name of the label to match.
- value_
glob string - Glob pattern matched against the label value.
- name str
- Name of the label to match.
- value_
glob str - Glob pattern matched against the label value.
DerivedLabelMetricLabelMappingLabel, DerivedLabelMetricLabelMappingLabelArgs
- Name
Mappings List<Chronosphere.Pulumi. Inputs. Derived Label Metric Label Mapping Label Name Mapping> - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - Value
Mappings List<Chronosphere.Pulumi. Inputs. Derived Label Metric Label Mapping Label Value Mapping> - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- Name
Mappings []DerivedLabel Metric Label Mapping Label Name Mapping - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - Value
Mappings []DerivedLabel Metric Label Mapping Label Value Mapping - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- name_
mappings list(object) - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - value_
mappings list(object) - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- name
Mappings List<DerivedLabel Metric Label Mapping Label Name Mapping> - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - value
Mappings List<DerivedLabel Metric Label Mapping Label Value Mapping> - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- name
Mappings DerivedLabel Metric Label Mapping Label Name Mapping[] - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - value
Mappings DerivedLabel Metric Label Mapping Label Value Mapping[] - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- name_
mappings Sequence[DerivedLabel Metric Label Mapping Label Name Mapping] - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - value_
mappings Sequence[DerivedLabel Metric Label Mapping Label Value Mapping] - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- name
Mappings List<Property Map> - Ordered list of name mappings. The first mapping whose filters match supplies the derived label from its
source_label. - value
Mappings List<Property Map> - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
DerivedLabelMetricLabelMappingLabelNameMapping, DerivedLabelMetricLabelMappingLabelNameMappingArgs
- Filters
List<Chronosphere.
Pulumi. Inputs. Derived Label Metric Label Mapping Label Name Mapping Filter> - Label filters that must all match for this value definition to apply.
- Source
Label string - Source label on the ingested time series to copy into the derived label.
- Value
Mappings List<Chronosphere.Pulumi. Inputs. Derived Label Metric Label Mapping Label Name Mapping Value Mapping> - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- Filters
[]Derived
Label Metric Label Mapping Label Name Mapping Filter - Label filters that must all match for this value definition to apply.
- Source
Label string - Source label on the ingested time series to copy into the derived label.
- Value
Mappings []DerivedLabel Metric Label Mapping Label Name Mapping Value Mapping - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- filters list(object)
- Label filters that must all match for this value definition to apply.
- source_
label string - Source label on the ingested time series to copy into the derived label.
- value_
mappings list(object) - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- filters
List<Derived
Label Metric Label Mapping Label Name Mapping Filter> - Label filters that must all match for this value definition to apply.
- source
Label String - Source label on the ingested time series to copy into the derived label.
- value
Mappings List<DerivedLabel Metric Label Mapping Label Name Mapping Value Mapping> - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- filters
Derived
Label Metric Label Mapping Label Name Mapping Filter[] - Label filters that must all match for this value definition to apply.
- source
Label string - Source label on the ingested time series to copy into the derived label.
- value
Mappings DerivedLabel Metric Label Mapping Label Name Mapping Value Mapping[] - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- filters
Sequence[Derived
Label Metric Label Mapping Label Name Mapping Filter] - Label filters that must all match for this value definition to apply.
- source_
label str - Source label on the ingested time series to copy into the derived label.
- value_
mappings Sequence[DerivedLabel Metric Label Mapping Label Name Mapping Value Mapping] - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
- filters List<Property Map>
- Label filters that must all match for this value definition to apply.
- source
Label String - Source label on the ingested time series to copy into the derived label.
- value
Mappings List<Property Map> - Translations from source label values to a normalized target value. Each entry maps a set of source globs to a single target.
DerivedLabelMetricLabelMappingLabelNameMappingFilter, DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs
- name string
- Name of the label to match.
- value_
glob string - Glob pattern matched against the label value.
- name str
- Name of the label to match.
- value_
glob str - Glob pattern matched against the label value.
DerivedLabelMetricLabelMappingLabelNameMappingValueMapping, DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs
- Source
Value List<string>Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - Target
Value string - Value to assign on the derived label when any
source_value_globsmatches.
- Source
Value []stringGlobs - Glob patterns matched against the source label value. A match maps the value to
target_value. - Target
Value string - Value to assign on the derived label when any
source_value_globsmatches.
- source_
value_ list(string)globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target_
value string - Value to assign on the derived label when any
source_value_globsmatches.
- source
Value List<String>Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target
Value String - Value to assign on the derived label when any
source_value_globsmatches.
- source
Value string[]Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target
Value string - Value to assign on the derived label when any
source_value_globsmatches.
- source_
value_ Sequence[str]globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target_
value str - Value to assign on the derived label when any
source_value_globsmatches.
- source
Value List<String>Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target
Value String - Value to assign on the derived label when any
source_value_globsmatches.
DerivedLabelMetricLabelMappingLabelValueMapping, DerivedLabelMetricLabelMappingLabelValueMappingArgs
- Source
Value List<string>Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - Target
Value string - Value to assign on the derived label when any
source_value_globsmatches.
- Source
Value []stringGlobs - Glob patterns matched against the source label value. A match maps the value to
target_value. - Target
Value string - Value to assign on the derived label when any
source_value_globsmatches.
- source_
value_ list(string)globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target_
value string - Value to assign on the derived label when any
source_value_globsmatches.
- source
Value List<String>Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target
Value String - Value to assign on the derived label when any
source_value_globsmatches.
- source
Value string[]Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target
Value string - Value to assign on the derived label when any
source_value_globsmatches.
- source_
value_ Sequence[str]globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target_
value str - Value to assign on the derived label when any
source_value_globsmatches.
- source
Value List<String>Globs - Glob patterns matched against the source label value. A match maps the value to
target_value. - target
Value String - Value to assign on the derived label when any
source_value_globsmatches.
DerivedLabelSpanTag, DerivedLabelSpanTagArgs
- Name
Mappings List<Chronosphere.Pulumi. Inputs. Derived Label Span Tag Name Mapping> - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
- Name
Mappings []DerivedLabel Span Tag Name Mapping - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
- name_
mappings list(object) - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
- name
Mappings List<DerivedLabel Span Tag Name Mapping> - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
- name
Mappings DerivedLabel Span Tag Name Mapping[] - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
- name_
mappings Sequence[DerivedLabel Span Tag Name Mapping] - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
- name
Mappings List<Property Map> - Ordered list of name mappings. The first mapping that matches supplies the derived label from its
source_tag.
DerivedLabelSpanTagNameMapping, DerivedLabelSpanTagNameMappingArgs
- Source
Tag string - Source span tag name to copy into the derived label.
- Source
Tag string - Source span tag name to copy into the derived label.
- source_
tag string - Source span tag name to copy into the derived label.
- source
Tag String - Source span tag name to copy into the derived label.
- source
Tag string - Source span tag name to copy into the derived label.
- source_
tag str - Source span tag name to copy into the derived label.
- source
Tag String - Source span tag name to copy into the derived label.
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