Ansible roles to install and configure a cluster of Raspberry Pi (2, 3 and 4).
Scope: all
- Configure SSH public key and disable password authentification.
- Install vim
Scope: all
- Installs and exposes Prometheus Node Exporter as a systemd service.
Used for general system metrics.
Scope: all
- Installs and exposes Prometheus RPI Exporter as a systemd service.
Collects cpu and gpu temperature metrics.
Scope: all
- Exposes default Docker daemon metrics for Prometheus.
The idea of this role is to add custom and additional metrids. TODO: Add google/cadvisor exporter for running containers.
Scope: master
- Installs and configures Prometheus with all exporters endpoints.
Scope: master
- Installs and configures Grafana with an example dashboard.
Modify the inventory
file with the corresponding IPs of your raspberries:
[master]
192.168.1.90
[nodes]
192.168.1.70
192.168.1.80
192.168.1.60
Run raspberry.yml
playbook:
make all
// Or
ansible-galaxy install -r requirements.yml --roles-path roles/ && ansible-playbook raspberry.yml -i inventory
- Cool alert rules file: https://gist.github.com/krisek/62a98e2645af5dce169a7b506e999cd8#file-alert-rules-yml