CentOS 7,8 Prometheus/node_exporter rpm yum repo
The repository contains the files needed to build Prometheus RPM packages for CentOS 7 & 8.
cat >> /etc/yum.repos.d/prometheus.repo << DELIM [prometheus] name=prometheus baseurl=https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch repo_gpgcheck=1 enabled=1 gpgkey=https://packagecloud.io/prometheus-rpm/release/gpgkey https://raw.githubusercontent.com/lest/prometheus-rpm/master/RPM-GPG-KEY-prometheus-rpm gpgcheck=1 metadata_expire=300 DELIM
yum install node_exporter firewall-cmd --add-port=9100/tcp --permanent firewall-cmd --add-port=9115/tcp --permanent firewall-cmd --reload systemctl start node_exporter
Ansible script for node_exporter installation:
node_exporter.yml