diff --git a/config/merge_env.go b/config/merge_env.go index ad76306f7..8d2ed537b 100644 --- a/config/merge_env.go +++ b/config/merge_env.go @@ -26,6 +26,10 @@ func mergeEnv(c *AgentConfig) { c.HostName = v } + if v := os.Getenv("DD_APM_DD_URL"); v != "" { + c.APIEndpoint = v + } + if v := os.Getenv("DD_API_KEY"); v != "" { vals := strings.Split(v, ",") for i := range vals {