This playbook can be used to deploy and update prometheus, node_exporter and ping_exporter to a machine running a systemd-based GNU/Linux distribution. Currently only amd64 and arm64 architectures are supported, but support for other architectures can be easily added via configuration (and cross-compiling ping_exporter).
I'm using this stack to get basic metrics from a few servers. Prometheus instances on nodes are pushing metrics gathered from localhost to a remote InfluxDB instance through a Wireguard VPN connection.
Prometheus
node_exporter
ping_exporter
This playbook ships its own ping_exporter binaries in the files
directory. The reason for this is the upstream project doesn't ship arm64 binaries currently, so I cross-compiled it for my own use. If you don't trust these binaries, I suggest compiling your own.
Edit config/config.yaml
and run the playbook on your machines. You might also want to take a look on the rest of the configuration in the templates
directory.