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

Windows installer for agent not able to change region

Open tobyhalldev opened this issue 4 years ago • 3 comments

Describe what happened:

I was seeing invalid API key in the .yaml settings even though I could validate it with curl okay. I suspected that I may have left the region as datadoghq.com in and not used datadoghq.eu when I installed it. The bugs I am reporting are that:

  • The Change button in the Windows installer does nothing
  • When you do a Repair I suspect it does not change the original setting of .com over .eu because I still got the error. Yet when I uninstalled and reinstalled with the .eu domain it is now working.

Also, I couldn't find where the region domain is set/changed after installer is run?

Additional environment details (Operating System, Cloud provider, etc):

Windows 10.

tobyhalldev avatar Feb 20 '21 19:02 tobyhalldev

I still came across this issue a few days ago when i tried it on a Ubuntu box. Is this going to be resolved. The same things but in Ubuntu. Could this be fixed please. @sgnn7

tobyhalldev avatar Aug 06 '22 12:08 tobyhalldev

Hey @tobyhalldev, I added the label so that the appropriate team can answer your original question.

I sadly don't know enough about exact installer settings you are mentioning but I believe that using SITE (Windows) / DD_SITE (Linux) env vars should get your installation to use those servers. If you need to change the setting post-install, you can directly edit Agent's configuration files in either /etc/datadog-agent/datadog.yaml (Linux) or %ProgramData%\Datadog\datadog.yaml (Windows) and change the site: setting to the appropriate value.

sgnn7 avatar Aug 08 '22 21:08 sgnn7

Oh thanks for looking into this @sgnn7 I will keep an eye on it.

tobyhalldev avatar Aug 09 '22 16:08 tobyhalldev

If the configuration file %ProgramData%\Datadog\datadog.yaml already exists then the installer will not modify it. We don't have plans to change this behavior at the moment. You can follow @sgnn7's instructions to edit the configuration file.

clarkb7 avatar Nov 10 '23 14:11 clarkb7