2026-01-27 14:22:10 +04:00
add
2026-01-26 11:23:57 +04:00
add
2026-01-27 14:22:10 +04:00
2026-01-25 17:30:52 +04:00
add
2026-01-26 11:23:57 +04:00
2026-01-25 15:18:59 +04:00
2026-01-25 15:18:59 +04:00
add
2026-01-26 11:23:57 +04:00
add
2026-01-27 12:17:11 +04:00
2026-01-25 15:18:59 +04:00
2026-01-25 15:18:59 +04:00
2026-01-25 15:18:59 +04:00
add
2026-01-26 11:23:57 +04:00
add
2026-01-26 11:23:57 +04:00
2026-01-25 15:21:52 +04:00
2026-01-25 15:19:57 +04:00

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

github

blog

Description
No description provided
Readme 49 KiB
Languages
Jinja 100%