Note: this is still an alpha version, and will probably change before release.
Since it is not a definitive release, this package is not signed. To install it, you have to accept packages from external sources: go to Apple menu > System Preferences… > Security & Privacy > General tab and under the header "Allow applications downloaded from:", select Anywhere. For more details, check the official documentation, under Click here for more details.
Run this command (replace the api_key by your api_key available at https://app.datadoghq.com/account/settings#api) :
DD_API_KEY=your_api_key bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/dd-agent/534f6e7d92200601feb8c41c71af1fcf61913d4c/packaging/osx/install.sh)"
- Download the dmg here.
- Open the dmg file.
- Double-click on datadog-agent.pkg.
- Accept our License, and confirm the install.
Datadog agent is not yet configured and thus cannot run.
- Open a terminal windows (
⌘
+space
and type 'terminal'). - Copy paste this command, replacing the api key by your API key (available at https://app.datadoghq.com/account/settings#api):
DD_API_KEY=your_api_key bash -c 'sed "s/api_key:.*/api_key: $DD_API_KEY/" /etc/dd-agent/datadog.conf.example | sudo tee /etc/dd-agent/datadog.conf > /dev/null'
You are all set, and ready to use the agent!
To start the agent (it is already started if you used the script), just run sudo datadog-agent start
.
You can also use all the other commands by running sudo datadog-agent command
.
Warning: It will delete every trace of datadog agent.
Just run:
sudo datadog-agent stop && sudo rm -rf /var/log/datadog /etc/dd-agent /opt/datadog-agent /usr/bin/datadog-agent