datadog-operator icon indicating copy to clipboard operation
datadog-operator copied to clipboard

Operator does not honor DD_SITE

Open deas opened this issue 3 years ago • 2 comments

in values.yaml of the operator chart, it reads:

# site -- The site of the Datadog intake to send data to (documentation: https://docs.datadoghq.com/getting_started/site/)

## Set to 'datadoghq.com' to send data to the US1 site (default).
## Set to 'datadoghq.eu' to send data to the EU site.
## Set to 'us3.datadoghq.com' to send data to the US3 site.
## Set to 'us5.datadoghq.com' to send data to the US5 site.
## Set to 'ddog-gov.com' to send data to the US1-FED site.
site:  # datadoghq.com

# dd_url -- The host of the Datadog intake server to send Agent data to, only set this option if you need the Agent to send data to a custom URL

## Overrides the site setting defined in "site".
dd_url:  # <DATADOG_API_ENDPOINT>

I was setting site: datadoghq.eu, and expected the operator to use the EU endpoint. That's not the case. It uses the default US endpoint - at least for monitors so I ended up with 403.

The docs right above dd_url was confusing me even more, so I did not use that when in fact - after reading through the sources, it was solving me issue.

I think operator should use site in context of monitor and potentially other custom resources as well.

deas avatar Oct 06 '22 12:10 deas

Hi @deas , thanks for reporting. You are correct and we will update this issue when it is fixed.

celenechang avatar Oct 07 '22 14:10 celenechang

As a workaround for now, setting DD_URL = https://api.datadoghq.eu should work.

celenechang avatar Oct 07 '22 14:10 celenechang

yes got the same issue

martijnvdp avatar Dec 19 '22 20:12 martijnvdp

Hello i got the same issue too, the code has not been updated https://github.com/DataDog/datadog-operator/blob/7c39c354538672d56342d612c1fe1a7279502ff9/pkg/datadogclient/client.go#L47 it only takes into account DD_URL @celenechang any plans to fix it ? :)

melchiormoulin avatar Jun 26 '23 12:06 melchiormoulin

also ran into this issue. Datadog support linked me directly to this ticket so I guess they're aware of it. hopefully it can be fixed soon....

TimoSchmechel avatar Jul 12 '23 08:07 TimoSchmechel

Hi everyone, apologies for the delay in addressing this - I somehow missed the recent notifications. We'll prioritize this ASAP.

celenechang avatar Jul 12 '23 11:07 celenechang

This was fixed in https://github.com/DataDog/datadog-operator/pull/838 and will be part of operator 1.1.0 . Thanks for your patience.

celenechang avatar Jul 13 '23 19:07 celenechang