Install Prometheus Service and Data Source

Video Lecture

Install Prometheus Service and Data Source Install Prometheus Service and Data Source Install Prometheus Service and Data Source

Install Prometheus Service and Data Source

Prometheus is already available on the default Ubuntu 18.04 repositories. So we can just install it and it will be set up as a service already.

sudo apt install prometheus
sudo service prometheus status

Test it by visiting http://[your domain or ip]:9090/graph

Restrict internet access by

iptables -A INPUT -p tcp -s localhost --dport 9090 -j ACCEPT
iptables -A INPUT -p tcp --dport 9090 -j DROP
iptables -L

Prometheus Course

If you want to try a more detailed course on Prometheus, then you can visit my Prometheus tutorials.