datadog-agent
datadog-agent copied to clipboard
Windows installer for agent not able to change region
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.
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
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.
Oh thanks for looking into this @sgnn7 I will keep an eye on it.
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.