Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Ansible role to install Datadog agent on your Raspberry Pi

License

Notifications You must be signed in to change notification settings

eplanet/ansible-datadog-raspberrypi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datadog-ansible-raspberrypi

Build Status

Deprecation warning

This repository is essentially deprecated, as the best way to install the agent on a Raspberry Pi now is to simply use offical Datadog Ansible role and specify:

datadog_agent_flavor: "datadog-iot-agent"

Presentation

The installation of Datadog agent on a Raspberry Pi is possible and well explained in that post. However this might be a bit too manual and time consuming, which is why I decided to create that Ansible role to facilitate tedious work.

Installation process follow this order:

  • Install dependencies libpython2.7-dev and sysstat
  • Verify agent is installed and if not proceed to installation
  • Setup startup command in /etc/rc.local
  • Launch Datadog agent

Variables

  • datadog_api_key: Your Datadog API key, found here. No default value!
  • datadog_agent_home: The directory to install the agent to. Default: /opt/datadog-agent
  • datadog_log_file: Override the logging file path. Default: /var/log/datadog-agent.log
  • datadog_skip_integrations: Tell installation script to skip integrations installation, values: 1 to skip, 0 to install. Default: 1
  • datadog_hostname (optional): Override the hostname reported to Datadog

Example playbook

Minimal

- hosts: servers
  roles:
    - { role: ansible-datadog-raspberrypi, become: yes, datadog_api_key: "123456" }

Overriding variables

---
- hosts: servers
  roles:
    - { role: ansible-datadog-raspberrypi, become: yes }
  vars:
    datadog_api_key: "123456"
    datadog_agent_home: "/home/pi/datadog-agent"
    datadog_skip_integrations: 1
    datadog_log_file: "/home/pi/datadog-agent/logs"
    datadog_hostname: "myraspberrypi"

License

Apache 2.0

Contributing

Contributions very welcome! If you notice any issue or room for improvement, do not hesitate to open an issue or submit a pull request.

About

Ansible role to install Datadog agent on your Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages