Prometheus is a free and open source programming environment that permits us to gather measurements from our applications and stores them in an information base, particularly a period arrangement based DB. It is an incredible observing framework reasonable for dynamic conditions. Prometheus is written in Go and use inquiry language for information preparing. Prometheus gives measurements of CPU, memory, plate utilization, I/O, network insights, MySQL worker and Nginx.
In this post, We will install and configure Prometheus – Monitoring system & time series database on Ubuntu 22.04 LTS.
Step 1: Update the System
You need to update the ubuntu current repository server by using the given command.
sudo apt-get update
Step 2: Add Prometheus Repository
Once the ubuntu system up to date So then you need to add the prometheus repository by using the command.
wget https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg | apt-key add -
Step 3: Install Prometheus
You need to update the ubuntu repository and use the following command to install prometheus packages.
To update again system
sudo apt-get update
To install Prometheus only
sudo apt-get install prometheus -y
To install Prometheus with required packages node-exportor, Push Gateway and Alert Manager ( Recommended )
sudo apt-get install prometheus prometheus-node-exporter prometheus-pushgateway prometheus-alertmanager -y
Get the prometheus service status by using the given command.
sudo systemctl status prometheus
Step 4: UFW Rules
After installation of the packages, We need to open the required port by using the command.
To check UFW firewall status
sudo ufw status
To allow port 9090, If your UFW firewall enabled.
sudo ufw allow 9090
Step 5: Accessing Web Panel
You need to open the browser with http://localhost:9090
or http://IP_Address:9090
if everything okay, So then you should get web page like this.
Conclusion
We have successfully installed Prometheus server on ubuntu 22.04 LTS, Kindly report in case you are facing defeculties with follwing details.
- OS
- OS version
- Package name
- Logs – Error / Warning / failed
Get in touch with our new devops tools based website- https://www.devopstricks.in/