Prometheus on Ubuntu
Prerequisites
- Ubuntu 22.04 Server
- Root access
Instructions
1. Connect to the Server
SSH into your server as the root user.
ssh root@<your_server_ip>
2. Check Current Files
Upon logging in, you might want to check the current files and directories.
ls
3. Update Package List
First, it's a good practice to update your package list.
apt update
4. List Upgradable Packages
Before upgrading, check which packages are upgradable.
apt list --upgradable
5. Upgrade Packages
Upgrade all upgradable packages.
apt update -y && apt upgrade -y
You will see output that lists new and upgraded packages. Confirm any prompts that appear.
6. Verify Kernel Update (Optional)
After the upgrade, you may want to confirm that the kernel was updated.
uname -r
7. Install Prometheus
Now, install Prometheus along with its dependencies.
apt install prometheus
Confirm any prompts that appear to complete the installation.
8. Verify Installation (Optional)
Check if Prometheus is running.
systemctl status prometheus