Install Prometheus

Video Lecture

Install Prometheus Install Prometheus


We will install the latest version of Prometheus on our server.

Before you start, you will need a Linux server. Preferably an unrestricted Ubuntu 18.04 LTS Server with root access, since all the commands demonstrated in this course were executed on Ubuntu 18.04 LTS Server. I can can recommend using Digital Ocean for your Ubuntu 18.04 LTS.

You will get $50 Free Credit for 30 Days so you can install many minimal $5 per month Ubuntu VMs during that 30 days and try them out as you need.

You can use other operating systems, such as Centos 7, but all commands in the course are prepared for Ubuntu 18, so you will experience some differences in syntax or equivalent commands which you may need to research yourself if I can't help you.

Once you have an Ubuntu 18 server ready, you can find the latest version of the Prometheus binary to download at

Or just copy/paste this pre created command below for prometheus-2.14.


After downloading, and before we run it, we should verify it's ok by checking its SHA256 Checksum.

sha256sum prometheus-2.14.0.linux-amd64.tar.gz

The output for prometheus-2.14.0.linux-amd64.tar.gz should be, ddf47223ec716594254df110ee26ad52e66d7d4471ae8edbf9020087396861e5 prometheus-2.14.0.linux-amd64.tar.gz

If all is ok, then we can untar the gz archive.

tar xvfz prometheus-2.14.0.linux-amd64.tar.gz

Now CD into the folder

cd prometheus-2.14.0.linux-amd64

And start it

./prometheus --config.file=prometheus.yml

Prometheus should now be running.

You can visit it at http://[your ip address]:9090

The Prometheus binary will now be running in the main SSH session and we should change it so that it runs as a service. We will do this in the next step.