builtin:kubernetes.generic.metadata.enrichment)
Generic metadata enrichment for Kubernetes.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:kubernetes.generic.metadata.enrichment |
| KUBERNETES_CLUSTER - Kubernetes clusterenvironment |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:kubernetes.generic.metadata.enrichment |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:kubernetes.generic.metadata.enrichment | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:kubernetes.generic.metadata.enrichment |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Property | Type | Description | Required |
---|---|---|---|
rules | Rule[] |
Dynatrace enables you to set the security context for metrics, events, logs, spans, and entities based on a Kubernetes label or annotation. Dynatrace also enables you to set cost allocation attributes for metrics, events, logs, and spans based on Kubernetes labels and/or annotations. You might already have existing annotations and labels that you want to use as the source for either security context or cost allocation. You can do so by telling Dynatrace and the Dynatrace Operator which labels/annotations to use as the source. This has the advantage of not having to change any of your existing deployments. Do this by adding rules on this page. You can define a maximum of 20 rules. It can take up to 45 minutes for the Dynatrace Operator to adopt changes to the rules. Afterwards, pod restarts are required. To learn more about component requirements, types of enriched data and additional data enrichment options, please refer to the documentation. | required |
Rule
objectProperty | Type | Description | Required |
---|---|---|---|
Metadata typetype | enum |
| required |
Sourcesource | text | The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
Additionally, the name can have at most 63 characters, and the overall length of the source must not exceed 75 characters. | required |
Targettarget | enum |
| required |