There are multiple ways you get a Prometheus server installed. Broadly can be categorised into two purposes
Lets understand how one can get Prometheus up and running for development usage,
wget https://github.com/prometheus/prometheus/releases/download/v2.26.0/prometheus-2.26.0.linux-amd64.tar.gz -p /tmp
sudo tar -xvf /tmp/prometheus-2.26.0.linux-amd64.tar.gz -C /usr/local/share/
sudo mv /usr/local/share/prometheus-2.26.0.linux-amd64/ /usr/local/share/prometheus
/usr/local/share/prometheus
To Do
docker run --rm -it -p 9090:9090 prom/prometheus
In order to use prometheus in production environment one needs to plan it well. There are multiple ways you can get Prometheus installed for production usage,
Installation on a desired OS
Installaton on a dockerized platform