Deploying the Agent on RaspberryPI

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

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: esther/docs-8632-slo-blog-links