For Redhat based Operating systems only Ex: Redhat (RHEL), CentOS, Rocky, Fedora.
This script will download prometheus and complete the installation and start the service.
cd /tmp
wget https://github.com/dl-romero/prometheus_installer/archive/refs/heads/main.zip
unzip prometheus_installer-main.zip
cd prometheus_installer-main
sudo chmod 777 install_prometheus.sh
sudo ./install_prometheus.sh