Skip to content

Instantly share code, notes, and snippets.

@anselanza
Last active September 3, 2021 15:12
Show Gist options
  • Save anselanza/df79695add3339e32a804baf1f7d4022 to your computer and use it in GitHub Desktop.
Save anselanza/df79695add3339e32a804baf1f7d4022 to your computer and use it in GitHub Desktop.
Datadog for Raspberry Pi
# Use instructions as per https://github.com/DataDog/documentation/blob/master/content/en/developers/faq/deploying-the-agent-on-raspberrypi.md
# Create datadog.service file: `sudo nano /etc/systemd/system/datadog.service` as below
# Edit ~/.datadog-agent/agent/datadog.conf to custom hostname
# `sudo systemctl daemon-reload`
# `sudo systemctl enable datadog`
# `sudo service datadog start` and `sudo service datadog status`
[Unit]
Description=Start Datadog Agent
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/home/pi/.datadog-agent
ExecStart=/home/pi/.datadog-agent/bin/agent
Restart=on-abort
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment