CentOS 7 - Prometheus

Prometheus

https://computingforgeeks.com/install-prometheus-server-on-centos-7/

Prometheus node exporter

To export machine (OS/HW) stats:
https://github.com/prometheus/node_exporter
https://copr.fedorainfracloud.org/coprs/ibotty/prometheus-exporters/

# curl -Lo /etc/yum.repos.d/_copr_ibotty-prometheus-exporters.repo https://copr.fedorainfracloud.org/coprs/ibotty/prometheus-exporters/repo/epel-7/ibotty-prometheus-exporters-epel-7.repo

# yum install node_exporter
# systemctl daemon-reload
# systemctl enable node_exporter
# systemctl start node_exporter
# systemctl status node_exporter
# netstat -lpn | grep 9100

To limit exposed exporter only on private LAN:

# vim /etc/sysconfig/node_exporter

OPTIONS="--collector.textfile.directory /var/lib/node_exporter/textfile_collector --web.listen-address=192.168.1.1:9100"

# systemctl restart node_exporter
# netstat -lpn | grep 9100

# firewall-cmd --zone=internal --add-port=9100/tcp --permanent
# firewall-cmd --reload
# firewall-cmd --zone=internal --list-all

Grafana

https://www.centlinux.com/2019/11/install-grafana-prometheus-centos-7.html#yumrepo