You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out. I think earlier versions of the code were ignoring that flag and still sending the container ID. What version of our library are you using?
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 saysIn 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?
The text was updated successfully, but these errors were encountered: