published on Thursday, Jun 18, 2026 by Pulumi
published on Thursday, Jun 18, 2026 by Pulumi
Provides a Datadog Tag Indexing Rule resource. Tag indexing rules control which tag keys are indexed for metrics, reducing cardinality costs while preserving queryability.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const example = new datadog.TagIndexingRule("example", {
name: "Index env and service tags for all web metrics",
metricNameMatches: [
"web.*",
"http.*",
],
tags: [
"env",
"service",
"version",
],
excludeTagsMode: false,
options: {
version: 1,
data: {
managePreexistingMetrics: true,
overridePreviousRules: false,
},
},
});
import pulumi
import pulumi_datadog as datadog
example = datadog.TagIndexingRule("example",
name="Index env and service tags for all web metrics",
metric_name_matches=[
"web.*",
"http.*",
],
tags=[
"env",
"service",
"version",
],
exclude_tags_mode=False,
options={
"version": 1,
"data": {
"manage_preexisting_metrics": True,
"override_previous_rules": False,
},
})
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datadog.NewTagIndexingRule(ctx, "example", &datadog.TagIndexingRuleArgs{
Name: pulumi.String("Index env and service tags for all web metrics"),
MetricNameMatches: pulumi.StringArray{
pulumi.String("web.*"),
pulumi.String("http.*"),
},
Tags: pulumi.StringArray{
pulumi.String("env"),
pulumi.String("service"),
pulumi.String("version"),
},
ExcludeTagsMode: pulumi.Bool(false),
Options: &datadog.TagIndexingRuleOptionsArgs{
Version: pulumi.Int(1),
Data: &datadog.TagIndexingRuleOptionsDataArgs{
ManagePreexistingMetrics: pulumi.Bool(true),
OverridePreviousRules: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var example = new Datadog.TagIndexingRule("example", new()
{
Name = "Index env and service tags for all web metrics",
MetricNameMatches = new[]
{
"web.*",
"http.*",
},
Tags = new[]
{
"env",
"service",
"version",
},
ExcludeTagsMode = false,
Options = new Datadog.Inputs.TagIndexingRuleOptionsArgs
{
Version = 1,
Data = new Datadog.Inputs.TagIndexingRuleOptionsDataArgs
{
ManagePreexistingMetrics = true,
OverridePreviousRules = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.TagIndexingRule;
import com.pulumi.datadog.TagIndexingRuleArgs;
import com.pulumi.datadog.inputs.TagIndexingRuleOptionsArgs;
import com.pulumi.datadog.inputs.TagIndexingRuleOptionsDataArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new TagIndexingRule("example", TagIndexingRuleArgs.builder()
.name("Index env and service tags for all web metrics")
.metricNameMatches(
"web.*",
"http.*")
.tags(
"env",
"service",
"version")
.excludeTagsMode(false)
.options(TagIndexingRuleOptionsArgs.builder()
.version(1)
.data(TagIndexingRuleOptionsDataArgs.builder()
.managePreexistingMetrics(true)
.overridePreviousRules(false)
.build())
.build())
.build());
}
}
resources:
example:
type: datadog:TagIndexingRule
properties:
name: Index env and service tags for all web metrics
metricNameMatches:
- web.*
- http.*
tags:
- env
- service
- version
excludeTagsMode: false
options:
version: 1
data:
managePreexistingMetrics: true
overridePreviousRules: false
pulumi {
required_providers {
datadog = {
source = "pulumi/datadog"
}
}
}
resource "datadog_tagindexingrule" "example" {
name = "Index env and service tags for all web metrics"
metric_name_matches = ["web.*", "http.*"]
tags = ["env", "service", "version"]
exclude_tags_mode = false
options = {
version = 1
data = {
manage_preexisting_metrics = true
override_previous_rules = false
}
}
}
Create TagIndexingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TagIndexingRule(name: string, args: TagIndexingRuleArgs, opts?: CustomResourceOptions);@overload
def TagIndexingRule(resource_name: str,
args: TagIndexingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TagIndexingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric_name_matches: Optional[Sequence[str]] = None,
name: Optional[str] = None,
exclude_tags_mode: Optional[bool] = None,
ignored_metric_name_matches: Optional[Sequence[str]] = None,
options: Optional[TagIndexingRuleOptionsArgs] = None,
tags: Optional[Sequence[str]] = None)func NewTagIndexingRule(ctx *Context, name string, args TagIndexingRuleArgs, opts ...ResourceOption) (*TagIndexingRule, error)public TagIndexingRule(string name, TagIndexingRuleArgs args, CustomResourceOptions? opts = null)
public TagIndexingRule(String name, TagIndexingRuleArgs args)
public TagIndexingRule(String name, TagIndexingRuleArgs args, CustomResourceOptions options)
type: datadog:TagIndexingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "datadog_tagindexingrule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TagIndexingRuleArgs
- 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 TagIndexingRuleArgs
- 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 TagIndexingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagIndexingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagIndexingRuleArgs
- 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 tagIndexingRuleResource = new Datadog.TagIndexingRule("tagIndexingRuleResource", new()
{
MetricNameMatches = new[]
{
"string",
},
Name = "string",
ExcludeTagsMode = false,
IgnoredMetricNameMatches = new[]
{
"string",
},
Options = new Datadog.Inputs.TagIndexingRuleOptionsArgs
{
Data = new Datadog.Inputs.TagIndexingRuleOptionsDataArgs
{
DynamicTags = new Datadog.Inputs.TagIndexingRuleOptionsDataDynamicTagsArgs
{
QueriedTagsWindowSeconds = 0,
RelatedAssetTags = false,
},
ManagePreexistingMetrics = false,
MetricMatch = new Datadog.Inputs.TagIndexingRuleOptionsDataMetricMatchArgs
{
IsQueried = false,
NotQueried = false,
NotUsedInAssets = false,
QueriedWindowSeconds = 0,
UsedInAssets = false,
},
OverridePreviousRules = false,
},
Version = 0,
},
Tags = new[]
{
"string",
},
});
example, err := datadog.NewTagIndexingRule(ctx, "tagIndexingRuleResource", &datadog.TagIndexingRuleArgs{
MetricNameMatches: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
ExcludeTagsMode: pulumi.Bool(false),
IgnoredMetricNameMatches: pulumi.StringArray{
pulumi.String("string"),
},
Options: &datadog.TagIndexingRuleOptionsArgs{
Data: &datadog.TagIndexingRuleOptionsDataArgs{
DynamicTags: &datadog.TagIndexingRuleOptionsDataDynamicTagsArgs{
QueriedTagsWindowSeconds: pulumi.Int(0),
RelatedAssetTags: pulumi.Bool(false),
},
ManagePreexistingMetrics: pulumi.Bool(false),
MetricMatch: &datadog.TagIndexingRuleOptionsDataMetricMatchArgs{
IsQueried: pulumi.Bool(false),
NotQueried: pulumi.Bool(false),
NotUsedInAssets: pulumi.Bool(false),
QueriedWindowSeconds: pulumi.Int(0),
UsedInAssets: pulumi.Bool(false),
},
OverridePreviousRules: pulumi.Bool(false),
},
Version: pulumi.Int(0),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "datadog_tagindexingrule" "tagIndexingRuleResource" {
metric_name_matches = ["string"]
name = "string"
exclude_tags_mode = false
ignored_metric_name_matches = ["string"]
options = {
data = {
dynamic_tags = {
queried_tags_window_seconds = 0
related_asset_tags = false
}
manage_preexisting_metrics = false
metric_match = {
is_queried = false
not_queried = false
not_used_in_assets = false
queried_window_seconds = 0
used_in_assets = false
}
override_previous_rules = false
}
version = 0
}
tags = ["string"]
}
var tagIndexingRuleResource = new TagIndexingRule("tagIndexingRuleResource", TagIndexingRuleArgs.builder()
.metricNameMatches("string")
.name("string")
.excludeTagsMode(false)
.ignoredMetricNameMatches("string")
.options(TagIndexingRuleOptionsArgs.builder()
.data(TagIndexingRuleOptionsDataArgs.builder()
.dynamicTags(TagIndexingRuleOptionsDataDynamicTagsArgs.builder()
.queriedTagsWindowSeconds(0)
.relatedAssetTags(false)
.build())
.managePreexistingMetrics(false)
.metricMatch(TagIndexingRuleOptionsDataMetricMatchArgs.builder()
.isQueried(false)
.notQueried(false)
.notUsedInAssets(false)
.queriedWindowSeconds(0)
.usedInAssets(false)
.build())
.overridePreviousRules(false)
.build())
.version(0)
.build())
.tags("string")
.build());
tag_indexing_rule_resource = datadog.TagIndexingRule("tagIndexingRuleResource",
metric_name_matches=["string"],
name="string",
exclude_tags_mode=False,
ignored_metric_name_matches=["string"],
options={
"data": {
"dynamic_tags": {
"queried_tags_window_seconds": 0,
"related_asset_tags": False,
},
"manage_preexisting_metrics": False,
"metric_match": {
"is_queried": False,
"not_queried": False,
"not_used_in_assets": False,
"queried_window_seconds": 0,
"used_in_assets": False,
},
"override_previous_rules": False,
},
"version": 0,
},
tags=["string"])
const tagIndexingRuleResource = new datadog.TagIndexingRule("tagIndexingRuleResource", {
metricNameMatches: ["string"],
name: "string",
excludeTagsMode: false,
ignoredMetricNameMatches: ["string"],
options: {
data: {
dynamicTags: {
queriedTagsWindowSeconds: 0,
relatedAssetTags: false,
},
managePreexistingMetrics: false,
metricMatch: {
isQueried: false,
notQueried: false,
notUsedInAssets: false,
queriedWindowSeconds: 0,
usedInAssets: false,
},
overridePreviousRules: false,
},
version: 0,
},
tags: ["string"],
});
type: datadog:TagIndexingRule
properties:
excludeTagsMode: false
ignoredMetricNameMatches:
- string
metricNameMatches:
- string
name: string
options:
data:
dynamicTags:
queriedTagsWindowSeconds: 0
relatedAssetTags: false
managePreexistingMetrics: false
metricMatch:
isQueried: false
notQueried: false
notUsedInAssets: false
queriedWindowSeconds: 0
usedInAssets: false
overridePreviousRules: false
version: 0
tags:
- string
TagIndexingRule 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 TagIndexingRule resource accepts the following input properties:
- Metric
Name List<string>Matches - Metric name prefixes (glob patterns) this rule applies to.
- Name string
- Human-readable name for the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - Ignored
Metric List<string>Name Matches - Metric name prefixes excluded from the rule's scope.
- Options
Tag
Indexing Rule Options - Versioned configuration options for the rule.
- List<string>
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- Metric
Name []stringMatches - Metric name prefixes (glob patterns) this rule applies to.
- Name string
- Human-readable name for the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - Ignored
Metric []stringName Matches - Metric name prefixes excluded from the rule's scope.
- Options
Tag
Indexing Rule Options Args - Versioned configuration options for the rule.
- []string
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- metric_
name_ list(string)matches - Metric name prefixes (glob patterns) this rule applies to.
- name string
- Human-readable name for the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored_
metric_ list(string)name_ matches - Metric name prefixes excluded from the rule's scope.
- options object
- Versioned configuration options for the rule.
- list(string)
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- metric
Name List<String>Matches - Metric name prefixes (glob patterns) this rule applies to.
- name String
- Human-readable name for the rule.
- Boolean
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored
Metric List<String>Name Matches - Metric name prefixes excluded from the rule's scope.
- options
Tag
Indexing Rule Options - Versioned configuration options for the rule.
- List<String>
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- metric
Name string[]Matches - Metric name prefixes (glob patterns) this rule applies to.
- name string
- Human-readable name for the rule.
- boolean
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored
Metric string[]Name Matches - Metric name prefixes excluded from the rule's scope.
- options
Tag
Indexing Rule Options - Versioned configuration options for the rule.
- string[]
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- metric_
name_ Sequence[str]matches - Metric name prefixes (glob patterns) this rule applies to.
- name str
- Human-readable name for the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored_
metric_ Sequence[str]name_ matches - Metric name prefixes excluded from the rule's scope.
- options
Tag
Indexing Rule Options Args - Versioned configuration options for the rule.
- Sequence[str]
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- metric
Name List<String>Matches - Metric name prefixes (glob patterns) this rule applies to.
- name String
- Human-readable name for the rule.
- Boolean
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored
Metric List<String>Name Matches - Metric name prefixes excluded from the rule's scope.
- options Property Map
- Versioned configuration options for the rule.
- List<String>
- Tag keys this rule includes or excludes, depending on excludetagsmode.
Outputs
All input properties are implicitly available as output properties. Additionally, the TagIndexingRule resource produces the following output properties:
- Created
At string - Timestamp when the rule was created.
- Created
By stringHandle - Handle of the user who created the rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Timestamp when the rule was last modified.
- Modified
By stringHandle - Handle of the user who last modified the rule.
- Rule
Order int - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
- Created
At string - Timestamp when the rule was created.
- Created
By stringHandle - Handle of the user who created the rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Timestamp when the rule was last modified.
- Modified
By stringHandle - Handle of the user who last modified the rule.
- Rule
Order int - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
- created_
at string - Timestamp when the rule was created.
- created_
by_ stringhandle - Handle of the user who created the rule.
- id string
- The provider-assigned unique ID for this managed resource.
- modified_
at string - Timestamp when the rule was last modified.
- modified_
by_ stringhandle - Handle of the user who last modified the rule.
- rule_
order number - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
- created
At String - Timestamp when the rule was created.
- created
By StringHandle - Handle of the user who created the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - Timestamp when the rule was last modified.
- modified
By StringHandle - Handle of the user who last modified the rule.
- rule
Order Integer - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
- created
At string - Timestamp when the rule was created.
- created
By stringHandle - Handle of the user who created the rule.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
At string - Timestamp when the rule was last modified.
- modified
By stringHandle - Handle of the user who last modified the rule.
- rule
Order number - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
- created_
at str - Timestamp when the rule was created.
- created_
by_ strhandle - Handle of the user who created the rule.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
at str - Timestamp when the rule was last modified.
- modified_
by_ strhandle - Handle of the user who last modified the rule.
- rule_
order int - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
- created
At String - Timestamp when the rule was created.
- created
By StringHandle - Handle of the user who created the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - Timestamp when the rule was last modified.
- modified
By StringHandle - Handle of the user who last modified the rule.
- rule
Order Number - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering.
Look up Existing TagIndexingRule Resource
Get an existing TagIndexingRule 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?: TagIndexingRuleState, opts?: CustomResourceOptions): TagIndexingRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
created_by_handle: Optional[str] = None,
exclude_tags_mode: Optional[bool] = None,
ignored_metric_name_matches: Optional[Sequence[str]] = None,
metric_name_matches: Optional[Sequence[str]] = None,
modified_at: Optional[str] = None,
modified_by_handle: Optional[str] = None,
name: Optional[str] = None,
options: Optional[TagIndexingRuleOptionsArgs] = None,
rule_order: Optional[int] = None,
tags: Optional[Sequence[str]] = None) -> TagIndexingRulefunc GetTagIndexingRule(ctx *Context, name string, id IDInput, state *TagIndexingRuleState, opts ...ResourceOption) (*TagIndexingRule, error)public static TagIndexingRule Get(string name, Input<string> id, TagIndexingRuleState? state, CustomResourceOptions? opts = null)public static TagIndexingRule get(String name, Output<String> id, TagIndexingRuleState state, CustomResourceOptions options)resources: _: type: datadog:TagIndexingRule get: id: ${id}import {
to = datadog_tagindexingrule.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.
- Created
At string - Timestamp when the rule was created.
- Created
By stringHandle - Handle of the user who created the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - Ignored
Metric List<string>Name Matches - Metric name prefixes excluded from the rule's scope.
- Metric
Name List<string>Matches - Metric name prefixes (glob patterns) this rule applies to.
- Modified
At string - Timestamp when the rule was last modified.
- Modified
By stringHandle - Handle of the user who last modified the rule.
- Name string
- Human-readable name for the rule.
- Options
Tag
Indexing Rule Options - Versioned configuration options for the rule.
- Rule
Order int - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - List<string>
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- Created
At string - Timestamp when the rule was created.
- Created
By stringHandle - Handle of the user who created the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - Ignored
Metric []stringName Matches - Metric name prefixes excluded from the rule's scope.
- Metric
Name []stringMatches - Metric name prefixes (glob patterns) this rule applies to.
- Modified
At string - Timestamp when the rule was last modified.
- Modified
By stringHandle - Handle of the user who last modified the rule.
- Name string
- Human-readable name for the rule.
- Options
Tag
Indexing Rule Options Args - Versioned configuration options for the rule.
- Rule
Order int - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - []string
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- created_
at string - Timestamp when the rule was created.
- created_
by_ stringhandle - Handle of the user who created the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored_
metric_ list(string)name_ matches - Metric name prefixes excluded from the rule's scope.
- metric_
name_ list(string)matches - Metric name prefixes (glob patterns) this rule applies to.
- modified_
at string - Timestamp when the rule was last modified.
- modified_
by_ stringhandle - Handle of the user who last modified the rule.
- name string
- Human-readable name for the rule.
- options object
- Versioned configuration options for the rule.
- rule_
order number - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - list(string)
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- created
At String - Timestamp when the rule was created.
- created
By StringHandle - Handle of the user who created the rule.
- Boolean
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored
Metric List<String>Name Matches - Metric name prefixes excluded from the rule's scope.
- metric
Name List<String>Matches - Metric name prefixes (glob patterns) this rule applies to.
- modified
At String - Timestamp when the rule was last modified.
- modified
By StringHandle - Handle of the user who last modified the rule.
- name String
- Human-readable name for the rule.
- options
Tag
Indexing Rule Options - Versioned configuration options for the rule.
- rule
Order Integer - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - List<String>
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- created
At string - Timestamp when the rule was created.
- created
By stringHandle - Handle of the user who created the rule.
- boolean
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored
Metric string[]Name Matches - Metric name prefixes excluded from the rule's scope.
- metric
Name string[]Matches - Metric name prefixes (glob patterns) this rule applies to.
- modified
At string - Timestamp when the rule was last modified.
- modified
By stringHandle - Handle of the user who last modified the rule.
- name string
- Human-readable name for the rule.
- options
Tag
Indexing Rule Options - Versioned configuration options for the rule.
- rule
Order number - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - string[]
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- created_
at str - Timestamp when the rule was created.
- created_
by_ strhandle - Handle of the user who created the rule.
- bool
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored_
metric_ Sequence[str]name_ matches - Metric name prefixes excluded from the rule's scope.
- metric_
name_ Sequence[str]matches - Metric name prefixes (glob patterns) this rule applies to.
- modified_
at str - Timestamp when the rule was last modified.
- modified_
by_ strhandle - Handle of the user who last modified the rule.
- name str
- Human-readable name for the rule.
- options
Tag
Indexing Rule Options Args - Versioned configuration options for the rule.
- rule_
order int - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - Sequence[str]
- Tag keys this rule includes or excludes, depending on excludetagsmode.
- created
At String - Timestamp when the rule was created.
- created
By StringHandle - Handle of the user who created the rule.
- Boolean
- When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to
false. - ignored
Metric List<String>Name Matches - Metric name prefixes excluded from the rule's scope.
- metric
Name List<String>Matches - Metric name prefixes (glob patterns) this rule applies to.
- modified
At String - Timestamp when the rule was last modified.
- modified
By StringHandle - Handle of the user who last modified the rule.
- name String
- Human-readable name for the rule.
- options Property Map
- Versioned configuration options for the rule.
- rule
Order Number - Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use
datadog.TagIndexingRuleOrderto control ordering. - List<String>
- Tag keys this rule includes or excludes, depending on excludetagsmode.
Supporting Types
TagIndexingRuleOptions, TagIndexingRuleOptionsArgs
- Data
Tag
Indexing Rule Options Data - Behavioral options for how the rule applies to metrics, including backfill and override behavior.
- Version int
- Options schema version. Only
1is supported.
- Data
Tag
Indexing Rule Options Data - Behavioral options for how the rule applies to metrics, including backfill and override behavior.
- Version int
- Options schema version. Only
1is supported.
- data
Tag
Indexing Rule Options Data - Behavioral options for how the rule applies to metrics, including backfill and override behavior.
- version Integer
- Options schema version. Only
1is supported.
- data
Tag
Indexing Rule Options Data - Behavioral options for how the rule applies to metrics, including backfill and override behavior.
- version number
- Options schema version. Only
1is supported.
- data
Tag
Indexing Rule Options Data - Behavioral options for how the rule applies to metrics, including backfill and override behavior.
- version int
- Options schema version. Only
1is supported.
- data Property Map
- Behavioral options for how the rule applies to metrics, including backfill and override behavior.
- version Number
- Options schema version. Only
1is supported.
TagIndexingRuleOptionsData, TagIndexingRuleOptionsDataArgs
-
Tag
Indexing Rule Options Data Dynamic Tags - Configuration for including dynamically queried tags.
- Manage
Preexisting boolMetrics - When true, the rule applies to metrics ingested before the rule was created.
- Metric
Match TagIndexing Rule Options Data Metric Match - Criteria for matching metrics based on query state.
- Override
Previous boolRules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
-
Tag
Indexing Rule Options Data Dynamic Tags - Configuration for including dynamically queried tags.
- Manage
Preexisting boolMetrics - When true, the rule applies to metrics ingested before the rule was created.
- Metric
Match TagIndexing Rule Options Data Metric Match - Criteria for matching metrics based on query state.
- Override
Previous boolRules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
- object
- Configuration for including dynamically queried tags.
- manage_
preexisting_ boolmetrics - When true, the rule applies to metrics ingested before the rule was created.
- metric_
match object - Criteria for matching metrics based on query state.
- override_
previous_ boolrules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
-
Tag
Indexing Rule Options Data Dynamic Tags - Configuration for including dynamically queried tags.
- manage
Preexisting BooleanMetrics - When true, the rule applies to metrics ingested before the rule was created.
- metric
Match TagIndexing Rule Options Data Metric Match - Criteria for matching metrics based on query state.
- override
Previous BooleanRules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
-
Tag
Indexing Rule Options Data Dynamic Tags - Configuration for including dynamically queried tags.
- manage
Preexisting booleanMetrics - When true, the rule applies to metrics ingested before the rule was created.
- metric
Match TagIndexing Rule Options Data Metric Match - Criteria for matching metrics based on query state.
- override
Previous booleanRules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
-
Tag
Indexing Rule Options Data Dynamic Tags - Configuration for including dynamically queried tags.
- manage_
preexisting_ boolmetrics - When true, the rule applies to metrics ingested before the rule was created.
- metric_
match TagIndexing Rule Options Data Metric Match - Criteria for matching metrics based on query state.
- override_
previous_ boolrules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
- Property Map
- Configuration for including dynamically queried tags.
- manage
Preexisting BooleanMetrics - When true, the rule applies to metrics ingested before the rule was created.
- metric
Match Property Map - Criteria for matching metrics based on query state.
- override
Previous BooleanRules - When true, this rule's tag list overrides tags configured by earlier rules for the same metric.
TagIndexingRuleOptionsDataDynamicTags, TagIndexingRuleOptionsDataDynamicTagsArgs
- int
- Lookback window for determining which tags were recently queried.
- bool
- When true, tags from related assets are included.
- int
- Lookback window for determining which tags were recently queried.
- bool
- When true, tags from related assets are included.
- number
- Lookback window for determining which tags were recently queried.
- bool
- When true, tags from related assets are included.
- Integer
- Lookback window for determining which tags were recently queried.
- Boolean
- When true, tags from related assets are included.
- number
- Lookback window for determining which tags were recently queried.
- boolean
- When true, tags from related assets are included.
- int
- Lookback window for determining which tags were recently queried.
- bool
- When true, tags from related assets are included.
- Number
- Lookback window for determining which tags were recently queried.
- Boolean
- When true, tags from related assets are included.
TagIndexingRuleOptionsDataMetricMatch, TagIndexingRuleOptionsDataMetricMatchArgs
- Is
Queried bool - Match metrics that are being queried.
- Not
Queried bool - Match metrics that are not being queried.
- Not
Used boolIn Assets - Match metrics not used in any dashboards or monitors.
- Queried
Window intSeconds - Window in seconds for evaluating query state.
- Used
In boolAssets - Match metrics used in dashboards or monitors.
- Is
Queried bool - Match metrics that are being queried.
- Not
Queried bool - Match metrics that are not being queried.
- Not
Used boolIn Assets - Match metrics not used in any dashboards or monitors.
- Queried
Window intSeconds - Window in seconds for evaluating query state.
- Used
In boolAssets - Match metrics used in dashboards or monitors.
- is_
queried bool - Match metrics that are being queried.
- not_
queried bool - Match metrics that are not being queried.
- not_
used_ boolin_ assets - Match metrics not used in any dashboards or monitors.
- queried_
window_ numberseconds - Window in seconds for evaluating query state.
- used_
in_ boolassets - Match metrics used in dashboards or monitors.
- is
Queried Boolean - Match metrics that are being queried.
- not
Queried Boolean - Match metrics that are not being queried.
- not
Used BooleanIn Assets - Match metrics not used in any dashboards or monitors.
- queried
Window IntegerSeconds - Window in seconds for evaluating query state.
- used
In BooleanAssets - Match metrics used in dashboards or monitors.
- is
Queried boolean - Match metrics that are being queried.
- not
Queried boolean - Match metrics that are not being queried.
- not
Used booleanIn Assets - Match metrics not used in any dashboards or monitors.
- queried
Window numberSeconds - Window in seconds for evaluating query state.
- used
In booleanAssets - Match metrics used in dashboards or monitors.
- is_
queried bool - Match metrics that are being queried.
- not_
queried bool - Match metrics that are not being queried.
- not_
used_ boolin_ assets - Match metrics not used in any dashboards or monitors.
- queried_
window_ intseconds - Window in seconds for evaluating query state.
- used_
in_ boolassets - Match metrics used in dashboards or monitors.
- is
Queried Boolean - Match metrics that are being queried.
- not
Queried Boolean - Match metrics that are not being queried.
- not
Used BooleanIn Assets - Match metrics not used in any dashboards or monitors.
- queried
Window NumberSeconds - Window in seconds for evaluating query state.
- used
In BooleanAssets - Match metrics used in dashboards or monitors.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
published on Thursday, Jun 18, 2026 by Pulumi