published on Friday, Aug 14, 2026 by Pulumiverse
published on Friday, Aug 14, 2026 by Pulumiverse
This resource requires the API token scopes Read settings (
settings.read) and Write settings (settings.write)
Dynatrace Documentation
Kubernetes app - https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monitoring/kubernetes-app
Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId:
builtin:kubernetes.generic.metadata.enrichment)
Export Example Usage
terraform-provider-dynatrace -export dynatrace.KubernetesEnrichmentdownloads all existing generic metadata enrichment rules for Kubernetes
The full documentation of the export feature is available here.
Create KubernetesEnrichment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesEnrichment(name: string, args?: KubernetesEnrichmentArgs, opts?: CustomResourceOptions);@overload
def KubernetesEnrichment(resource_name: str,
args: Optional[KubernetesEnrichmentArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesEnrichment(resource_name: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[KubernetesEnrichmentRulesArgs] = None,
scope: Optional[str] = None)func NewKubernetesEnrichment(ctx *Context, name string, args *KubernetesEnrichmentArgs, opts ...ResourceOption) (*KubernetesEnrichment, error)public KubernetesEnrichment(string name, KubernetesEnrichmentArgs? args = null, CustomResourceOptions? opts = null)
public KubernetesEnrichment(String name, KubernetesEnrichmentArgs args)
public KubernetesEnrichment(String name, KubernetesEnrichmentArgs args, CustomResourceOptions options)
type: dynatrace:KubernetesEnrichment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_kubernetes_enrichment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args KubernetesEnrichmentArgs
- 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 KubernetesEnrichmentArgs
- 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 KubernetesEnrichmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesEnrichmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesEnrichmentArgs
- 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 kubernetesEnrichmentResource = new Dynatrace.KubernetesEnrichment("kubernetesEnrichmentResource", new()
{
Rules = new Dynatrace.Inputs.KubernetesEnrichmentRulesArgs
{
Rules = new[]
{
new Dynatrace.Inputs.KubernetesEnrichmentRulesRuleArgs
{
Source = "string",
Type = "string",
PrimaryGrailTag = false,
Target = "string",
},
},
},
Scope = "string",
});
example, err := dynatrace.NewKubernetesEnrichment(ctx, "kubernetesEnrichmentResource", &dynatrace.KubernetesEnrichmentArgs{
Rules: &dynatrace.KubernetesEnrichmentRulesArgs{
Rules: dynatrace.KubernetesEnrichmentRulesRuleArray{
&dynatrace.KubernetesEnrichmentRulesRuleArgs{
Source: pulumi.String("string"),
Type: pulumi.String("string"),
PrimaryGrailTag: pulumi.Bool(false),
Target: pulumi.String("string"),
},
},
},
Scope: pulumi.String("string"),
})
resource "dynatrace_kubernetes_enrichment" "kubernetesEnrichmentResource" {
lifecycle {
create_before_destroy = true
}
rules = {
rules = [{
source = "string"
type = "string"
primary_grail_tag = false
target = "string"
}]
}
scope = "string"
}
var kubernetesEnrichmentResource = new KubernetesEnrichment("kubernetesEnrichmentResource", KubernetesEnrichmentArgs.builder()
.rules(KubernetesEnrichmentRulesArgs.builder()
.rules(KubernetesEnrichmentRulesRuleArgs.builder()
.source("string")
.type("string")
.primaryGrailTag(false)
.target("string")
.build())
.build())
.scope("string")
.build());
kubernetes_enrichment_resource = dynatrace.KubernetesEnrichment("kubernetesEnrichmentResource",
rules={
"rules": [{
"source": "string",
"type": "string",
"primary_grail_tag": False,
"target": "string",
}],
},
scope="string")
const kubernetesEnrichmentResource = new dynatrace.KubernetesEnrichment("kubernetesEnrichmentResource", {
rules: {
rules: [{
source: "string",
type: "string",
primaryGrailTag: false,
target: "string",
}],
},
scope: "string",
});
type: dynatrace:KubernetesEnrichment
properties:
rules:
rules:
- primaryGrailTag: false
source: string
target: string
type: string
scope: string
KubernetesEnrichment 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 KubernetesEnrichment resource accepts the following input properties:
- Rules
Pulumiverse.
Dynatrace. Inputs. Kubernetes Enrichment Rules - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- Scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- Rules
Kubernetes
Enrichment Rules Args - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- Scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules object
- Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules
Kubernetes
Enrichment Rules - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope String
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules
Kubernetes
Enrichment Rules - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules
Kubernetes
Enrichment Rules Args - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope str
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules Property Map
- Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope String
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesEnrichment 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 KubernetesEnrichment Resource
Get an existing KubernetesEnrichment 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?: KubernetesEnrichmentState, opts?: CustomResourceOptions): KubernetesEnrichment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[KubernetesEnrichmentRulesArgs] = None,
scope: Optional[str] = None) -> KubernetesEnrichmentfunc GetKubernetesEnrichment(ctx *Context, name string, id IDInput, state *KubernetesEnrichmentState, opts ...ResourceOption) (*KubernetesEnrichment, error)public static KubernetesEnrichment Get(string name, Input<string> id, KubernetesEnrichmentState? state, CustomResourceOptions? opts = null)public static KubernetesEnrichment get(String name, Output<String> id, KubernetesEnrichmentState state, CustomResourceOptions options)resources: _: type: dynatrace:KubernetesEnrichment get: id: ${id}import {
to = dynatrace_kubernetes_enrichment.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.
- Rules
Pulumiverse.
Dynatrace. Inputs. Kubernetes Enrichment Rules - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- Scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- Rules
Kubernetes
Enrichment Rules Args - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- Scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules object
- Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules
Kubernetes
Enrichment Rules - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope String
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules
Kubernetes
Enrichment Rules - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope string
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules
Kubernetes
Enrichment Rules Args - Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope str
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
- rules Property Map
- Kubernetes Telemetry Enrichment empowers you to effectively tag your telemetry data using Kubernetes namespace labels and annotations. Additionally, it enables you to tag it for cost allocation and permission purposes.
- scope String
- The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
Supporting Types
KubernetesEnrichmentRules, KubernetesEnrichmentRulesArgs
KubernetesEnrichmentRulesRule, KubernetesEnrichmentRulesRuleArgs
- Source string
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- Type string
- Metadata type. Possible values:
ANNOTATION,LABEL - Primary
Grail boolTag - Uses the key of the annotation or label as field name directly
- Target string
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
- Source string
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- Type string
- Metadata type. Possible values:
ANNOTATION,LABEL - Primary
Grail boolTag - Uses the key of the annotation or label as field name directly
- Target string
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
- source string
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- type string
- Metadata type. Possible values:
ANNOTATION,LABEL - primary_
grail_ booltag - Uses the key of the annotation or label as field name directly
- target string
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
- source String
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- type String
- Metadata type. Possible values:
ANNOTATION,LABEL - primary
Grail BooleanTag - Uses the key of the annotation or label as field name directly
- target String
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
- source string
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- type string
- Metadata type. Possible values:
ANNOTATION,LABEL - primary
Grail booleanTag - Uses the key of the annotation or label as field name directly
- target string
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
- source str
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- type str
- Metadata type. Possible values:
ANNOTATION,LABEL - primary_
grail_ booltag - Uses the key of the annotation or label as field name directly
- target str
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
- source String
- The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
- type String
- Metadata type. Possible values:
ANNOTATION,LABEL - primary
Grail BooleanTag - Uses the key of the annotation or label as field name directly
- target String
- Possible values:
dt.cost.costcenter,dt.cost.product,dt.security_context
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
published on Friday, Aug 14, 2026 by Pulumiverse