The Service Map for APM is here!

Basic Agent Usage for Source Installation

Overview

This page outlines the basic features of the Datadog Agent. If you haven’t installed the Agent yet, instructions can be found in the Datadog Agent Integration page.

By default, your Agent is installed in its own sandbox at ~/.datadog-agent. You’re free to move this folder wherever you like. However, this article assumes that the Agent is installed in its default location, so be sure to modify the instructions accordingly if you decide to move them.

Commands

Datadog Agent has some commands and only the lifecycle commands (i.e. start/stop/restart/status on the Agent) should be run with sudo.

Description Command
Start Agent sudo ./bin/agent/agent start
Stop Agent sudo ./bin/agent/agent stop
Status page of running Agent sudo ./bin/agent/agent info
Send flare sudo ./bin/agent/agent flare
Display command usage sudo ./bin/agent/agent help
Description Command
Start Agent sudo ~/.datadog-agent/bin/agent start
Stop Agent sudo ~/.datadog-agent/bin/agent stop
Status page of running Agent sudo ~/.datadog-agent/bin/agent info
Send flare sudo ~/.datadog-agent/bin/agent flare
Display command usage sudo ~/.datadog-agent/bin/agent help

Configuration

The configuration files and folders for the Agent are located in:

  • /etc/datadog-agent/datadog.yaml

Configuration files for Integrations:

  • /etc/datadog-agent/conf.d/

The configuration files and folders for the Agent are located in:

  • /etc/dd-agent/datadog.conf

Configuration files for Integrations:

  • /etc/dd-agent/conf.d/

Troubleshooting

Run the status command to see the state of the Agent. The Agent logs are located in the /var/log/datadog/ directory and are consolidated in the agent.log file.

If you’re still having trouble, our support team is glad to provide further assistance.

Run the info command to see the state of the Agent. The Agent logs are located in the /var/log/datadog/ directory and are split into:

  • datadog-supervisord.log
  • collector.log
  • dogstatsd.log
  • forwarder.log

If you’re still having trouble, our support team is glad to provide further assistance.

Further Reading