Datadog Agent 6 contains a large number of changes. While we attempted to make it a drop in replacement, there were a small number of deprecations or changes in behavior which will be listed in this document. For a list of features that haven't been ported, see this doc.
Note: If you see anything that's incorrect about this document, do not hesitate to open an issue or submit a Pull Request.
- Configuration Files
- CLI
- Logs
- Checks
- APM agent
- Process agent
- Python Modules
- Docker
- Kubernetes
- Autodiscovery
- JMX
- GUI
Prior releases of Datadog Agent stored configuration files in /etc/dd-agent
.
Starting with the 6.0 release configuration files will now be stored in
/etc/datadog-agent
.
In addition to the location change, the primary agent configuration file has been
transitioned from INI format to YAML to better support complex configurations and
for a more consistent experience across the Agent and the Checks; as such datadog.conf
is now retired in favor of datadog.yaml
.
To automatically transition between agent configuration paths and formats, you
may use the agent command: sudo -u dd-agent -- datadog-agent import
.
The command will parse an existing datadog.conf
and convert all the bits that
the new Agent still supports to the new format, in the new file. It also copies
configuration files for checks that are currently enabled.
Please refer to this section of the Beta documentation for a detailed list of the configuration options that were either changed or deprecated in the new Agent.
There are a few major changes:
- only the lifecycle commands (i.e.
start
/stop
/restart
/status
on the Agent service) should be run withsudo service
/sudo initctl
/sudo systemctl
- all the other commands need to be run with the
datadog-agent
command, located in thePATH
(/usr/bin
) by default - the
info
command has been renamedstatus
- the Agent 6 does not ship a SysV-init script (previously located at
/etc/init.d/datadog-agent
)
For example, for an Agent installed on Ubuntu, the differences are as follows:
Agent5 Command | Agent6 Command | Notes |
---|---|---|
sudo service datadog-agent start |
sudo service datadog-agent start |
Start Agent as a service |
sudo service datadog-agent stop |
sudo service datadog-agent stop |
Stop Agent running as a service |
sudo service datadog-agent restart |
sudo service datadog-agent restart |
Restart Agent running as a service |
sudo service datadog-agent status |
sudo service datadog-agent status |
Status of Agent service |
sudo service datadog-agent info |
sudo datadog-agent status |
Status page of running Agent |
sudo service datadog-agent flare |
sudo datadog-agent flare |
Send flare |
sudo service datadog-agent |
sudo datadog-agent --help |
Display command usage |
sudo -u dd-agent -- dd-agent check <check_name> |
sudo -u dd-agent -- datadog-agent check <check_name> |
Run a check |
NB: If service
is not available on your system, use:
- on
upstart
-based systems:sudo start/stop/restart datadog-agent
- on
systemd
-based systems:sudo systemctl start/stop/restart datadog-agent
There are a few major changes
- the main executable name is now
agent.exe
(it wasddagent.exe
previously) - Commands should be run with the command line
c:\program files\datadog\datadog-agent\embedded\agent.exe <command>
- The configuration GUI is now a browser based configuration application.
The agent has a new set of command-line options:
Command | Notes |
---|---|
check | Run the specified check |
diagnose | Execute some connectivity diagnosis on your system |
flare | Collect a flare and send it to Datadog |
help | Help about any command |
hostname | Print the hostname used by the Agent |
import | Import and convert configuration files from previous versions of the Agent |
installservice | Installs the agent within the service control manager |
launch-gui | starts the Datadog Agent GUI |
regimport | Import the registry settings into datadog.yaml |
remove-service | Removes the agent from the service control manager |
restart-service | restarts the agent within the service control manager |
start | Start the Agent |
start-service | starts the agent within the service control manager |
status | Print the current status |
stopservice | stops the agent within the service control manager |
version | Print the version info |
- The browser session must be restarted each time the Agent service is restarted. This will be fixed in an upcoming beta.
- the lifecycle commands (former
datadog-agent start
/stop
/restart
/status
on the Agent 5) are replaced bylaunchctl
commands on thecom.datadoghq.agent
service, and should be run under the logged-in user. For these commands, you can also use the Datadog Agent systray app - all the other commands can still be run with the
datadog-agent
command (located in thePATH
(/usr/local/bin/
) by default) - the
info
command has been renamedstatus
A few examples:
Agent5 Command | Agent6 Command | Notes |
---|---|---|
datadog-agent start |
launchctl start com.datadoghq.agent or systray app |
Start Agent as a service |
datadog-agent stop |
launchctl stop com.datadoghq.agent or systray app |
Stop Agent running as a service |
datadog-agent restart |
run stop then start or systray app |
Restart Agent running as a service |
datadog-agent status |
launchctl list com.datadoghq.agent or systray app |
Status of Agent service |
datadog-agent info |
datadog-agent status or web GUI |
Status page of running Agent |
datadog-agent flare |
datadog-agent flare or web GUI |
Send flare |
not implemented | datadog-agent --help |
Display command usage |
datadog-agent check <check_name> |
datadog-agent check <check_name> |
Run a check (unchanged) |
The Agent logs are still located in the /var/log/datadog/
directory. On Windows, the logs are still located in the c:\programdata\Datadog\logs
directory.
Prior releases were logging to multiple files in that directory (collector.log
,
forwarder.log
, dogstatsd.log
, etc). Starting with 6.0 the Agent logs to a single log file, agent.log
.
Starting from beta version 6.0.0-beta.9
and going forward, the order of precedence between custom
checks (i.e. checks in the /etc/datadog-agent/checks.d/
folder by default on Linux) and the checks shipped
with the Agent by default (i.e. checks from integrations-core
) has changed: the
integrations-core
checks now have precedence over custom checks.
This affects your setup if you have custom checks that have the same name as existing integrations-core
checks: these custom checks will now be ignored, and the integrations-core
checks loaded instead.
To fix your custom check setup with Agent 6, rename your affected custom checks to a new and unused name,
and rename the related .yaml
configuration files accordingly.
The base class for python checks remains AgentCheck
, and you will import it in
the same way. However, there are a number of things that have been removed or
changed in the new implementation of the check. In addition, each check instance
is now its own instance of the class. So you cannot share state between them.
All the official integrations have had these methods removed from them, so these will only affect custom checks.
The following methods have been removed from AgentCheck
:
_roll_up_instance_metadata
instance_count
is_check_enabled
read_config
set_check_version
set_manifest_path
_get_statistic_name_from_method
_collect_internal_stats
_get_internal_profiling_stats
_set_internal_profiling_stats
get_library_versions
get_library_info
from_yaml
get_service_checks
has_warnings
get_metrics
has_events
get_events
The following things have been changed:
The function signature of the metric senders changed from:
gauge(self, metric, value, tags=None, hostname=None, device_name=None, timestamp=None)
to:
gauge(self, name, value, tags=None, hostname=None, device_name=None)
The APM agent (also known as trace agent) is shipped by default with the Agent 6 in the Linux, MacOS and Windows packages.
The APM agent is enabled by default on linux.
To enable the check on other platforms or disable it on linux,
you can update the apm_config
key in your datadog.yaml
:
apm_config:
enabled: true
For the Docker image, the APM agent is disabled by default. You can enable it by setting
the DD_APM_ENABLED
envvar to true
. It will listen to all interfaces by default.
If you want to listen to non-local trafic on any other platform, you can set
apm_config.apm_non_local_traffic = true
in your datadog.yaml
.
The process agent is shipped by default with the Agent 6 in the Linux packages only.
The process agent is not enabled by default. To enable the check you can update your datadog.yaml
file to add the following:
process_config:
enabled: "true"
The enabled
value is a string with the following options:
"true"
: Enable the process-agent to collect processes and containers."false"
: Only collect containers if available (the default)"disabled"
: Don't run the process-agent at all.
The Docker check has been rewritten in Go to take advantage of the new internal architecture of the Agent, mainly bringing a consistent behaviour across every container related component. Therefore the Python version will never work within Agent 6.
-
The new check is named
docker
and no longerdocker_daemon
. All features are ported, excepted the following deprecations:- the
url
,api_version
andtags*
options are deprecated, direct use of the standard docker environment variables is encouraged - the
ecs_tags
,performance_tags
andcontainer_tags
options are deprecated. Every relevant tag is now collected by default - the
collect_container_count
option to enable thedocker.container.count
metric is not supported.docker.containers.running
and.stopped
are to be used
- the
-
Some options have moved from
docker_daemon.yaml
to the maindatadog.yaml
:collect_labels_as_tags
has been renameddocker_labels_as_tags
and now supports high cardinality tags, see the details indatadog.yaml.example
exclude
andinclude
lists have been renamedac_include
andac_exclude
. In order to make filtering consistent accross all components of the agent, we had to drop filtering on arbitrary tags. The only supported filtering tags areimage
(image name) andname
(container name). Regexp filtering is still available, seedatadog.yaml.example
for examplesdocker_root
option has been split in two optionscontainer_cgroup_root
andcontainer_proc_root
exclude_pause_container
has been added to exclude pause containers on Kubernetes and Openshift (default to true). This will avoid removing them from the exclude list by error
The import
command support a --docker
flag to convert the old
docker_daemon.yaml
to the new docker.yaml
. The command will also move
needed settings from docker_daemon.yaml
to datadog.yaml
.
We are still working on kubernetes integration, feature parity for the kubernetes
check will be provided by combining:
- The (work-in-progress)
kubelet
check retrieving metrics from the kubelet - The (work-in-progress)
kubernetes_apiserver
check retrieving events and service checks from the apiserver
Both are around the corner, but unfortunately are not yet ready for prime-time.
While Agent5 automatically collected every pod label as tags, Agent6 needs you to whilelist
labels that are relevant to you. This is done with the kubernetes_pod_labels_as_tags
option
in datadog.yaml
.
The following options and tags are deprecated:
- `label_to_tag_prefix` option is superseeded by kubernetes_pod_labels_as_tags
- `container_alias` tags are not collected anymore
- `kube_replicate_controller` is only added if the pod is created by a replication controller,
not systematically. Use the relevant creator tag (`kube_deployment` / `kube_daemon_set`...)
The kube_service
tagging depends on the Datadog Cluster Agent
, which is not released yet.
We reworked the Autodiscovery system from the ground up to be faster and more reliable. We also worked on decoupling container runtimes and orchestrators, to be more flexible in the future.
All documented use cases are supported, please contact our support team if you run into issues.
When using Kubernetes, the Autodiscovery system now sources information from the kubelet, instead of the Docker daemon. This will allow AD to work without access to the Docker socket, and enable a more consistent experience accross all parts of the agent. The side effect of that is that templates in Docker labels are not supported when using the kubelet AD listener. Templates in pod annotations still work as intended.
When specifying AD templates in pod annotations, the new annotation name prefix is ad.datadoghq.com/
. the previous annotation prefix
service-discovery.datadoghq.com/
is still supported for Agent6 but support will be removed in Agent7.
Autodiscovery templates in Docker labels still work, with the same com.datadoghq.ad.
name prefix.
The identifier override label has been renamed from com.datadoghq.sd.check.id
to com.datadoghq.ad.check.id
for consistency. The previous
name is still supported for Agent6 but support will be removed in Agent7.
While we are continuing to ship the python libraries that ship with Agent 5,
some of the embedded libraries have been removed. util.py
and its associated
functions have been removed from the agent. util.headers(...)
is still included
in the agent, but implemented in C and Go and passed through to the check.
Note: all the official integrations have had these obsolete modules removed from them, so these changes will only affect custom checks.
Much of the utils
directory has been removed from the agent as well. However,
most of what was removed was not diretly related to checks and wouldn't be imported
in almost anyone's checks. The flare module, for example, was removed and
reimplemented in Go, but is unlikely to have been used by anyone in a custom check.
To learn more, you can read about the details in the development documentation.
The Agent 6 ships JMXFetch and supports all of its features, except those that are listed in the Known Issues section of the beta docs.
The Agent 6 does not ship the jmxterm
JAR. If you wish to download and use jmxterm
, please refer to the upstream project.
Agent 6 deprecated Agent5's Windows Agent Manager GUI, replacing it with a browser-based, cross-platform one. See the specific docs for more details.