8000 WithoutOriginDetection option is not working · Issue #312 · DataDog/datadog-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
WithoutOriginDetection option is not working #312
Open
@radykal-com

Description

@radykal-com

We just noticed some of our applications where not reporting metrics when running in a docker container.
After looking at the process receiving the metrics we saw it was complaining because it was receiving the new "container-id" tag after the metric tags.
Example:
metric_name:1|c|c:in-2123553

After checking what was causing this we found it was this library with that new feature.
Creating the StatsDWriter with the WithoutOriginDetection should disable this and stop sending it but it's not.
The WithoutOriginDetection description says

// WithoutOriginDetection disables the client origin detection.
// When enabled, the client tries to discover its container ID and sends it to the Agent
// to enrich the metrics with container tags.
// Origin detection can also be disabled by configuring the environment variabe DD_ORIGIN_DETECTION_ENABLED=false
// The client tries to read the container ID by parsing the file /proc/self/cgroup, this is not supported on Windows.
// The client prioritizes the value passed via DD_ENTITY_ID (if set) over the container ID.

In the same server running the application container there is a datadog agent running (v7.54) but that server is not the destination for the statsD metrics sent by the app. It's another process in another server, which is compatible with the old version of the dogstatsd format but not with this new one.

What is correct way to disable this feature at the application using the StatsDWriter?

3CD4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0