[Datadog] I want to change the port settings 5000, 5001, 5002 during Datadog setup.

Print

By default, the agent binds to 3 ports on Linux and 4 ports on Windows and OSX. 


Port
Description
5000Exposes runtime metrics about the agent.
5001Used to send commands from the agent CLI and GUI, and retrieve information from the running agent.
5002Provides the GUI server on Windows and OSX.
8125Used by the DogStatsD server to receive external metrics.


If the above ports are occupied by another service instead of the Datadog agent,
you may encounter related port errors in the agent log,
or in the case of Windows, you may not be able to use the Datadog Agent Manager GUI,
or the agent may not start properly.

In the datadog.yaml file, remove the comments from each item as shown below,
change the ports from 5000/5001/5002 to other ports that are not occupied by another application,
and then restart the agent.


Sample related to datadog.yaml (example changing to the 6000 range)

## @param expvar_port - integer - optional - default: 5000 
## @env DD_EXPVAR_PORT - integer - optional - default: 5000 
## The port for the go_expvar server. 
# 
expvar_port: 6000 

## @param cmd_port - integer - optional - default: 5001 
## @env DD_CMD_PORT - integer - optional - default: 5001 
## The port on which the IPC api listens. 
# 
cmd_port: 6001 

## @param GUI_port - integer - optional 
## @env DD_GUI_PORT - integer - optional 
## The port for the browser GUI to be served. 
## Setting 'GUI_port: -1' turns off the GUI completely 
## Default is: 
##  * Windows & macOS : `5002` 
##  * Linux: `-1` 
## 
# 
GUI_port: 6002

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.