rc-node_exporter
This currently supports Linux systems that use Systemd
The Ansible code will download the node_exporter
release archive, extract and copy the node_exporter
binary to /usr/local/bin
, create the node_exporter
system user, followed by setting up the Systemd unit file and starting it.
The code doesn't currently do anything to open the {{ node_exporter_port }}
on the host firewall.
Running the Code
- Run it on the local host
ansible-playbook -c local -i 'localhost,' node_exporter.yml
- Run it on the local host using a different port
9300
than the default9100
ansible-playbook -c local -i 'localhost,' -e node_exporter_port=9300 node_exporter.yml