-
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_metrics
sink's traffic flows to our VPC endpoint but not to Datadog
#21867
Comments
I also cut a ticket to Datadog support (id: 1937927) as I'm unsure if this issue lies in vector or in Datadog. Apologies in advance if vector is working correctly. |
Hi @nzxwang, thank you for creating this issue. Did you by any chance inspect other sink metrics e.g. https://vector.dev/docs/reference/configuration/sinks/datadog_metrics/#component_sent_events_total? I would also like to confirm that the response codes on the Vector service are OK. |
Hi @pront thank you for the quick response! I should have thought to check the other sink metrics like Do you have any insight into how this is possible? |
Another metrics to check is https://vector.dev/docs/reference/configuration/sinks/datadog_metrics/#component_discarded_events_total.
When an event is received by the sink, the sink's service will prepare a request. But that request might fail, in that case the |
Hi again @pront and thank you for your patience in debugging this with me. I tried again and am seeing errors indicating failed requests like:
The metrics emitted by the FWIW, I also tried to reproduce what we're observing by simply count=0
while true; do
count=$((count + 1))
curl -X POST "https://metrics.agent.datadoghq.com/api/v1/series" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: REDACTED" \
-d "{
\"series\": [
{
\"metric\": \"test\",
\"points\": [
[$(date +%s), 3300]
],
\"type\": \"gauge\",
\"tags\": [\"location:globalqa.aws-usw2-dev.niwang\", \"service:loop.vector-collector-curl\"]
}
]
}"
echo "Curl command executed $count times"
done That being the case, could the issue be in how |
Looking at the error log and the diagrams I think it confirms that the sinks receive events but the service requests are failing. The requests are retried that's why there are no discarded events.
It is possible that this handmade request is different than the request Vector generates. You might be able to see metrics ingestion errors in your DD org. Do you have
We do not have visibility into that since the Vector team does not offer support for on-premises deployments. |
A note for the community
Problem
I would like to configure
vector
to route traffic to Datadog’s PrivateLink offering in us-east-1 from other regions using VPC Peering. I've configureddatadog_metrics
withendpoint = "https://metrics.agent.datadoghq.com/api/v1/series"
and verified my test metrics are flowing through my pipeline in the trace logs (as per previous advice #21325 (comment)) as well asvector tap
ing into my pipeline. Moreover, my VPC endpoint is correctly reporting traffic for my test metrics:However, the test metrics are either being dropped by Datadog's VPC Endpoint Service or by Datadog itself.
Configuration
Version
vector 0.39.0 (x86_64-unknown-linux-musl 73da9bb 2024-06-17 16:00:23.791735272)
Debug Output
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: