This guide assumes you upgraded to the beta using our upgrade guide
We have been careful to keep the legacy configurations in place to ease the the downgrade process should you decide you do not wish to continue trying the beta.
sudo apt-get update
sudo apt-get install apt-transport-https
sudo rm /etc/apt/sources.list.d/datadog-beta.list
[ ! -f /etc/apt/sources.list.d/datadog.list ] && echo 'deb https://apt.datadoghq.com/ stable main' | sudo tee /etc/apt/sources.list.d/datadog.list
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 382E94DE
sudo apt-get update
sudo apt-get remove datadog-agent
sudo apt-get install datadog-agent
rm /etc/yum.repos.d/datadog-beta.repo
[ ! -f /etc/yum.repos.d/datadog.repo ] && echo -e '[datadog]\nname = Datadog, Inc.\nbaseurl = https://yum.datadoghq.com/rpm/x86_64/\nenabled=1\ngpgcheck=1\npriority=1\ngpgkey=https://yum.datadoghq.com/DATADOG_RPM_KEY.public\n https://yum.datadoghq.com/DATADOG_RPM_KEY_E09422B3.public' | sudo tee /etc/yum.repos.d/datadog.repo
sudo yum clean expire-cache metadata
sudo yum check-update
sudo yum remove datadog-agent
sudo yum install datadog-agent
If you have made any changes to your configurations or templates, you might want to sync these back for agent 5.
Note: please beware that if you have made any changes to your configurations to support new agent6-only options, these will not work anymore with agent5.
If you made any changes or added any new custom checks while testing Agent 6 you might want to enable them back on Agent 5. Note: you only need to copy back checks you changed.
sudo -u dd-agent -- cp /etc/datadog-agent/checks.d/<check>.py /etc/dd-agent/checks.d/
# Systemd
sudo systemctl restart datadog-agent
# Upstart
sudo /etc/init.d/datadog-agent restart
sudo -u dd-agent -- rm -rf /etc/datadog-agent/
Run the agent installer package for the latest 5.x version, instructions can be found in the Datadog agent integration page.
- Stop the Agent with the systray app, if it's running
- Exit the systray app
- Uninstall the Datadog Agent application
- Install the Agent 5 DMG package using your preferred installation method