72060ed4c5b20cc0e8b5b856ea35960c42431d77
Ansible-Role: Node exporter
This role installs node-exporter for the prometeus metrics server and configures the systemd service
Installation
1: go to the roles folder
2: cloning the repository git clone url node_exporter
Requirements
N/A
Role Variables
General
NE_version: 'latest'
NE_arch: 'amd64'
NE_host: ''
NE_port: 9100
NE_options: ''
- NE_version: Node_exporter version
- NE_arch: System architecture
- NE_host: the IP address where node_exporter will listen
- NE_port: the port where node_exporter will listen (Don't forget to open it.)
- NE_optinos: Abstract attributes of node_exporter
Download
NE_download_url: https://github.com/prometheus/node_exporter/releases/download/v{{ NE_version }}/node_exporter-{{ NE_version }}.linux-{{ NE_arch }}.tar.gz
- NE_download_url generating the node_exporter download link
Setting systemd
NE_bin_path: /usr/local/bin/node_exporter
NE_state: started
NE_enabled: true
NE_restart: on-failure
- NE_bin_path The installation path of the binary file
- NE_state Start of the systemd service
- NE_enbaled Enabling systemd service startup
- NE_restart restarting node_exporter.service when it fails
Dependencies
no
Example Playbook
- hosts: servers
roles:
- role: node_exporter
License
MIT
Author Information
1xtier
Description
Languages
Jinja
100%