Skip to content

Support Datadog UDP origin detection on Kubernetes #2417

Closed

Description

@s12v

Datadog origin detection allows to detect where the container metrics come from, and tag metrics automatically [1]

Datadog clients use DD_ENTITY_ID environment variable to append dd.internal.entity_id tag
to the metric (Example: [2]). The agent uses this tag to detect the origin (e.g. a Kubernetes pod) and append its tags (various k8s tags like pod name, labels, annotations).

However, io.micrometer.statsd implementation does not support this.
Since it already has different flavors, perhaps this datadog-specific functionality could be implemented in the DATADOG flavor. Then the datadog UDP origin detection would work out of the box.

What do you think?

[1] https://docs.datadoghq.com/developers/dogstatsd/?tab=kubernetes#origin-detection-over-udp
[2] Example implementation in java-dogstatsd-client: https://github.com/DataDog/java-dogstatsd-client/blob/master/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java#L1759-L1770

Activity

  1. added
    registry: datadog
    on Feb 17, 2021
  2. added
    enhancement
    on Mar 16, 2021
  3. added this to the 1.x milestone on Mar 16, 2021
  4. added a commit that references this issue on Apr 12, 2021
    0b9fc3e
  5. modified the milestones: 1.x, 1.7.0-RC1 on Apr 12, 2021
  6. changed the title [-]Support Datadog UDP origin detection[/-] [+]Support Datadog UDP origin detection on Kubernetes[/+] on Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementregistry: datadog

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions