Enable Origin Detection for DogStatsD
masterOrigin detection allows the Datadog Agent to identify which pod a DogStatsD packet originated from by using the entity_id tag (derived from the DD_ENTITY_ID environment variable).
To enable this in Kubernetes, add the following to your application manifest to map the pod's UID to DD_ENTITY_ID:
env:
- name: DD_ENTITY_ID
valueFrom:
fieldRef:
fieldPath: metadata.uidImportant: To avoid overwriting the global entity_id tag, only use append when adding to the constant_tags list.