Deploying the Agent on RaspberryPI

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。

Using Raspbian

  1. Begin with the update of your local cache

    sudo apt-get update
    
  2. Then install sysstat.

    sudo apt-get install sysstat
    
  3. Navigate to the Agent Install Screen in Datadog and select “from source”

  4. Execute the installation command.

    DD_API_KEY=<YOUR-API-KEY> sh -c "$(curl -L https://raw.githubusercontent.com/DataDog/dd-agent/master/packaging/datadog-agent/source/setup_agent.sh)"
    

Note: The installation process may take up to 30 minutes on some models of Raspberry PI.

Example output after successful installation:

RaspberryPI Install

The Agent runs in the foreground. Some users find benefit in creating a systemd service for the Agent like this:

#/etc/systemd/system/datadog.service

[Unit]
Description=Datadog Agent

[Service]
ExecStart=/path/to/.datadog-agent/bin/agent

[Install]
WantedBy=multi-user.target

Then, run:

systemctl daemon-reload
sudo systemctl enable datadog
systemctl start datadog

The Datadog Agent is installed in the working directory where you ran the installation command, for example: /home/pi/.datadog-agent/.

Example of metrics being ingested from your Raspberry PI device:

RaspberryPI Dashboard

Note: Datadog does not officially support Raspbian.

PREVIEWING: safchain/fix-custom-agent