itnok.install_prometheus_node_exporter
install-prometheus-node-exporter
================================
This tool helps install Prometheus Node Exporter on a supported machine.
Steps to Follow
- Find the latest version of Prometheus Node Exporter (or the one you want).
- Check what the latest release is.
- Download the list of SHA256 checksums for the chosen release.
- Download the chosen version of Prometheus Node Exporter.
- Create a user for Prometheus Node Exporter if it doesn’t already exist.
- Extract the 'node_exporter' from the downloaded file.
- Set up the systemd service for Prometheus Node Exporter.
- Make systemd refresh its configuration files.
- Enable and restart the service for Prometheus Node Exporter.
Requirements
None.
Role Variables
Variable | Description | Default Value |
---|---|---|
install_prometheus |
The version of Prometheus Node Exporter to install | latest |
Dependencies
- itnok.is_ubuntu (For Ubuntu systems: ansible-role-is-ubuntu)
To install dependencies, use:
$ ansible-galaxy install <dependecy.name>
You can also install all required Ansible Roles easily with:
$ ansible-galaxy install -r requirements.yml
Example Playbook
Here’s how to use this role in your playbooks:
---
- hosts: servers
remote_user: ubuntu # optional (your remote user)
gather_facts: yes # optional
become: yes
roles:
- { role: itnok.install_prometheus_node_exporter }
vars:
install_prometheus: "latest"
License
MIT (read more)
Informazioni sul progetto
Install Prometheus Node Exporter on a supported host.
Installa
ansible-galaxy install itnok.install_prometheus_node_exporter
Licenza
mit
Download
903
Proprietario