Metadata metric enrichment
cloudNativeFullStack
applicationMonitoring
This feature flag is deprecated and enabled by default starting from Dynatrace Operator version 0.13.0.
Metadata metric enrichment leverages data from OneAgent and Dynatrace Operator by adding additional context or relevant data to the metrics sent. Enrichment means the logs and data are related back to entities (pods, processes, hosts). Every metric prefixed with dt.entity
is due to metadata enrichment.
Every application pod that is instrumented by the Dynatrace webhook is automatically enriched with metric metadata.
Activate metadata enrichment
To activate metadata enrichment, you need to create a special token for data ingest and add it to the secret.
- Create a
dataIngestToken
token and enable the Ingest metrics permission (API v2). - Make sure the
dynakube
secret you create in step 3 of the deployment instructions includes thedataIngestToken
token. - Redeploy your monitored pods.
You can add the dataIngestToken
token manually at any time by editing the secret:
-
Edit the existing secret.
-
Add a new
dataIngestToken
key with your generated token to the secret, as in the example below:apiVersion: v1kind: Secretmetadata:name: dynakubenamespace: dynatracedata:apiToken: <dynatrace-operator-token base64 encoded>dataIngestToken: <dataIngestToken base64 encoded>type: Opaque -
Redeploy your monitored pods.
Disable metadata enrichment
To disable the metadata enrichments, add the following annotation to the DynaKube custom resource:
metadata:annotations:...feature.dynatrace.com/disable-metadata-enrichment: "true"
Alternatively, you can disable the metadata enrichments by running the command below.