Here is a concise version of the Prometheus Installation Guide, perfect for a WordPress blog post.
Quick Guide: How to Install Prometheus on Linux
Prometheus is an open-source monitoring and alerting toolkit. Follow these condensed steps to get your server up and running quickly.
1. Download & Prepare
Visit the Prometheus Downloads page. Download the latest Linux AMD64 binary and extract it:
Bash
wget https://github.com/prometheus/prometheus/releases/download/v2.x.x/prometheus-2.x.x.linux-amd64.tar.gz
tar -xvf prometheus-*.tar.gz
2. Setup User & Permissions
For security, create a dedicated user and setup directories for configuration and data storage:
Bash
sudo useradd --no-create-home --shell /bin/false prometheus
sudo mkdir /etc/prometheus /var/lib/prometheus
sudo chown prometheus:prometheus /etc/prometheus /var/lib/prometheus
3. Move Binaries & Configuration
Relocate the executable files and the default configuration file to standard paths:
Bash
sudo mv prometheus promtool /usr/local/bin/
sudo mv prometheus.yml /etc/prometheus/
4. Create Systemd Service
Create a service file at /etc/systemd/system/prometheus.service so Prometheus starts automatically. Point the ExecStart to your binaries and config file.
5. Start & Enable Service
Activate Prometheus using the following commands:
Bash
sudo systemctl daemon-reload
sudo systemctl enable --now prometheus
6. Access the Web UI
Prometheus is now running! Open your browser and go to: http://your-server-ip:9090
