-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datadog_agent
source is not processing V2 API payload from Datadog agent accurately.
#18690
Comments
datadog_agent
source is not processing the V2 API payload from the Datadog agent accurately.datadog_agent
source is not processing V2 API payload from Datadog agent accurately.
👋 Thanks for the thorough report and analysis here. After reviewing everything, I agree with the consensus. Basically the Relatedly, this is the type of behavior we will want to test in the end-to-end test cases for the Datadog components that is in progress. I will link this issue there. In the meantime, I believe this could be worked around by configuring the Agent to send on the |
For the workaround, to configure the Agent to use the v1 endpoint you can set |
Another thought- there are in progress changes to migrate the |
Yeah for now we're using this variable to get past the issue. BTW it's the |
👋 this issue was addressed in #18761 , which is included in the recent |
Re-openening since v0.34.1 will contain #19138 , which reverts to the v1 behavior. |
Hi @neuronull @jszwedko, are there any updates on this issue? |
No updates unfortunately; I believe this issue still exists. The fix we'd like to do is to switch the |
A note for the community
Problem
Hey there,
After upgrading Datadog agent from
7.39.2
to7.45.0
, we observed that some metrics which use thedevice
tag stopped coming. We further investigated this and found out that thedevice
tag was renamed toresource.device
after the upgrade. This resulted in many dashboards being empty and monitors going off in Datadog. We had to revert the upgrade for fixing this issue. We looked into the source code of Datadog agent and Vector to find the root cause of this issue.Here's what we think is causing this:
Starting from the
7.43.2
release of Datadog agent, thedevice
tag was sent as a part ofresources
array : DataDog/datadog-agent#16264.The
datadog_agent
source acknowledges the V2 API payload with theresources
field, but does not handle the tags that are sent as a part ofresources
and not thetags
array. ref:vector/src/sources/datadog_agent/metrics.rs
Lines 270 to 281 in 53cad38
Because of the above block of code, the
device
tag that comes as an element ofresources
gets remapped toresource.device
by thedatadog_agent
source. Because of this remapping, the metrics sent out by thedatadog_metrics
sink have theresource.device
tag which is incorrect. It should bedevice
only.Seeking assistance in resolving this issue.
Discord thread: https://discord.com/channels/742820443487993987/1155850005391880214
cc @datsabk @jszwedko
Configuration
Version
vector 0.30.0
Debug Output
No response
Example Data
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: