itnok.install_prometheus_node_exporter

install-prometheus-node-exporter

================================

Build Status GitHub tag Ansible Role

This tool helps install Prometheus Node Exporter on a supported machine.

Steps to Follow

  1. Find the latest version of Prometheus Node Exporter (or the one you want).
  2. Check what the latest release is.
  3. Download the list of SHA256 checksums for the chosen release.
  4. Download the chosen version of Prometheus Node Exporter.
  5. Create a user for Prometheus Node Exporter if it doesn’t already exist.
  6. Extract the 'node_exporter' from the downloaded file.
  7. Set up the systemd service for Prometheus Node Exporter.
  8. Make systemd refresh its configuration files.
  9. 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


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