Install Prometheus Node Exporter - https://github.com/prometheus/node_exporter . Tested with EL 7, EL 8, EL 9, Ubuntu 18.04, Ubuntu 20.04, and Ubuntu 22.04.
None
See defaults/main.yml. This role supports all collectors, just list the collectors using the prometheus_node_exporter_enabled_collectors variable.
None
- name: The Prometheus Node Exporter role
hosts: node-exporter
become: yes
become_method: sudo
vars:
prometheus_node_exporter_enabled_collectors:
- logind
prometheus_node_exporter_disabled_collectors:
- netstat
roles:
- ansible-role-prometheus-node-exporter
tags:
- node-exporter
BSD
Kevin Coakley (https://github.com/kevincoakley)