-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error while validating API key: https://api.datadoghq.eu/api/v1/validate: Not Found #29445
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@AxelJoly Is it possible you are using some kind of proxy? To validate this, you can try running the Collector locally with a minimal configuration and see if the API key is correctly validated. |
Hi @mx-psi , yes we are behind a proxy, we added a bunch of proxy settings in the deployment file.
For the sidecar test, I added the proxy option to my curl command and it works. Could it be the datadog ignoring the proxy context? |
The HTTP client used for validation takes the proxy from the environment variables opentelemetry-collector-contrib/exporter/datadogexporter/internal/clientutil/http.go Line 35 in d79f679
Could it be that you are not setting the environment variables correctly in the Collector's environment? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Closing this as we haven't gotten a reply since November, @AxelJoly feel free to comment and we will reopen |
Component(s)
exporter/datadog
What happened?
Description
I'm running the opentelemetry-collector-contrib:0.82.0 on my EKS cluster. I tried as well on previous version (0.75) and got the same result.
With the config below, I get the following log:
2023-11-22T08:25:43.051Z warn clientutil/api.go:48 Error while validating API key {"kind": "exporter", "data_type": "metrics", "name": "datadog", "error": "Get \"https://api.datadoghq.eu/api/v1/validate\": Not Found"}
When I run the following command on my terminal, I have no issues:
curl -X GET "https://api.datadoghq.eu/api/v1/validate" -H "Accept: application/json" -H "DD-API-KEY: myapikey" {"valid":true}
I tried it in a sidecar container and it's working fine as well with the curl command.
Steps to Reproduce
Run opentelemetry-collector-contrib:0.82.0 image
add the following config with a valid key
Expected Result
The /api/v1/validate should be validating my key
Actual Result
The /api/v1/validate doesn't validate my key
Collector version
0.82
Environment information
Environment
EKS 1.25, running on Amazon Linux 2 AMIs
OpenTelemetry Collector configuration
Log output
`2023-11-22T08:25:43.051Z warn clientutil/api.go:48 Error while validating API key {"kind": "exporter", "data_type": "metrics", "name": "datadog", "error": "Get \"https://api.datadoghq.eu/api/v1/validate\": Not Found"}`
Additional context
No response
The text was updated successfully, but these errors were encountered: