For CentOS 8 Stream run the following as root:
cd /etc/yum.repos.d/
wget https://download.opensuse.org/repositories/systemsmanagement:Uyuni:Master:CentOS8-Uyuni-Client-Tools/CentOS_8_Stream/systemsmanagement:Uyuni:Master:CentOS8-Uyuni-Client-Tools.repo
yum install golang-github-lusitaniae-apache_exporter
For CentOS 8 run the following as root:
cd /etc/yum.repos.d/
wget https://download.opensuse.org/repositories/systemsmanagement:Uyuni:Master:CentOS8-Uyuni-Client-Tools/CentOS_8/systemsmanagement:Uyuni:Master:CentOS8-Uyuni-Client-Tools.repo
yum install golang-github-lusitaniae-apache_exporter