Skip to content

Instantly share code, notes, and snippets.

@palazzem
Last active January 9, 2020 13:58
Show Gist options
  • Save palazzem/250286637fea158ec1f89fcb10d40973 to your computer and use it in GitHub Desktop.
Save palazzem/250286637fea158ec1f89fcb10d40973 to your computer and use it in GitHub Desktop.
Datadog Agent ARMv7 post-build
# Install the Datadog Agent
mkdir -p /opt/datadog-agent/
mkdir -p /var/log/datadog/
mv ~/agent-armv7-package/agent /opt/datadog-agent/
mv ~/agent-armv7-package/dist /opt/datadog-agent/
mv ~/agent-armv7-package/datadog-agent /etc/
# Create dd-agent user and set permissions
addgroup dd-agent
adduser --system --no-create-home --disabled-password --ingroup dd-agent dd-agent
chown -R dd-agent:dd-agent /etc/datadog-agent/ /opt/datadog-agent/ /var/log/datadog/
chmod g+r,g+w,g+X -R /etc/datadog-agent/ /var/log/datadog/
# Create systemd run script: /lib/systemd/system/datadog-agent.service
[Unit]
Description="Datadog Agent"
After=network.target
[Service]
Type=simple
PIDFile=/opt/datadog-agent/run/agent.pid
User=dd-agent
Restart=on-failure
ExecStart=/opt/datadog-agent/agent start -p /opt/datadog-agent/run/agent.pid
[Install]
WantedBy=multi-user.target
@palazzem
Copy link
Author

palazzem commented Jan 8, 2020

This is an unofficial post-install script, to install an Agent ARMv7 build in your RaspberryPI. For more details check: https://github.com/palazzem/datadog-armv7-builder/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment