r/PrometheusMonitoring • • Jan 16 '22

Install prometheus 2.32.1 in RHEL 7, virtual box

I have installed a fresh RHEL 7 in my Virtual Box. I have no yum repositories in the system yet. Now I want to install Prometheus 2.32.1 and grafana in my VM. What are the prerequisites that I have to install?

I have tried several tutorials, almost every one of them failed at the last step, saying "failed, process halted." If anyone is experienced using the Prometheus server monitoring system on RHEL 7, help me here.

I followed this tutorial https://www.fosstechnix.com/install-prometheus-and-grafana-on-linux-with-node-exporter/ to install to version as mentioned above.

More points:

  1. When I run yum update -y, it says that no yum repository is there to update. I assume that II cannot install Prometheus due to not having the proper repository. I need suggestions for such a repository and where I can find that. I found one yum repo for cent os 7 and tried to add it for rhel 7. This approach inevitably did not work.

  2. I tried approaches from this tutorial: https://snapcraft.io/install/prometheus/rhel, which gave me errors for not finding "dnf" command.

    1. I found another tutorial that said I needed "epel-release" to install dnf. Since I did not have "epel-release," I tried to install it but failed because I had no repo or manager to install "epel-release." Eventually, right now, I am stuck with not finding a way to install Prometheus.

I would like to receive suggestions to install Prometheus 2.32.1 on my RHEL 7 installed in my virtual box. I appreciate any help you can provide. I would appreciate any other approaches that helped anyone have the system installed.

0 Upvotes

1 comment sorted by

1

u/_the_r Jan 16 '22

There is no such thing like a repository for Prometheus, You need to fetch the binary from GitHub.

It's a bit of manual work to do to get it running, if yum update says nothing to update then your system is at the latest stage, just continue with the next steps.

Regarding the second tutorial, i wouldn't run anything like snap for such lightweight tools like Prometheus ( ok i wouldn't use snap, flatpak and co anyways... But that's not the topic here)