The command runs a container named
netuitive-agent in the background and publishes the port values to the host. It then sets the environment variable
APIKEY to the described values. Lastly, a volume is mounted so the agent has access to the Docker API.
You can also copy the line below and paste it into your command line. Ensure you replace
<my-api-key> with your API key from CloudWisdom and
<my-docker-host> with the desired hostname. Additional environment variables are located in the drop-down below if you’d like to include more or edit existing ones.
docker run -d -p 8125:8125/udp --name netuitive-agent -e DOCKER_HOSTNAME="<my-docker-host>" -e APIKEY="<my-api-key>" -v /proc:/host_proc:ro -v /var/run/docker.sock:/var/run/docker.sock:ro netuitive/docker-agent
|LOGLEVEL||Changes the log level of the agent.||
|INTERVAL||Sets the interval in seconds at which the agent collectors run.||
|DOCKER_HOSTNAME||Sets the host name of the docker host.||
|APIKEY||Sets the API key used send data to CloudWisdom.||
|USE_LOCAL_CONFIG||Tells the agent to ignore any environment variables set and to usea local config file.||
|LPRT||Tells the Netuitive StatsD agent whatUDP port to listen on. 8125 is the default.|
|FORWARD||Enables forwarding from the
|FIP||Tells the Netuitive StatsD agent what IP address to forward to.|
|FPRT||Tells the Netuitive StatsD agent what port to forward to. 8125 isthe default|
Paste the command from 1.3 into your command line. Replace my-docker-host in the command with the name of the docker host. The command will install the agent and add your account’s unique API key to the configuration file.
- Optional: Navigate to the Linux agent configuration file at
/opt/netuitive-agent/conf/netuitive-agent.conf and add a metrics blacklist or whitelist under the
[[NetuitiveDockerCollector]] section to reduce the number of metrics you receive.
. * /using a
/. The following would match
containers.*.blkio.metrics and exclude them from collection.
metrics_blacklist = containers\..*\.blkio\..*
metrics_blacklist = containers\.(abcdef123456|123456abcdef|ghijkl789012)\..*