📞 🇺🇸 +1 361 304 4309 📞 🇮🇳 +91 76769 02281 ✉️ [email protected]
Monitoring & Alerts

How to Set Up Prometheus and Grafana on Ubuntu

How to Set Up Prometheus and Grafana on Ubuntu

Prometheus and Grafana together provide the most powerful open-source monitoring stack. Prometheus collects metrics, Grafana visualises them.

Step 1 — Install Prometheus

sudo useradd --no-create-home --shell /bin/false prometheus
cd /tmp
wget https://github.com/prometheus/prometheus/releases/latest/download/prometheus-*.linux-amd64.tar.gz
tar -xzf prometheus-*.tar.gz
sudo mv prometheus-*/prometheus /usr/local/bin/

Step 2 — Configure Prometheus

global:
  scrape_interval: 15s
scrape_configs:
  - job_name: 'node'
    static_configs:
      - targets: ['localhost:9100']

Step 3 — Install Node Exporter

wget https://github.com/prometheus/node_exporter/releases/latest/download/node_exporter-*.linux-amd64.tar.gz
tar -xzf node_exporter-*.tar.gz
sudo mv node_exporter-*/node_exporter /usr/local/bin/
sudo systemctl enable node_exporter --now

Step 4 — Install Grafana

sudo apt install grafana -y
sudo systemctl enable grafana-server --now
# Access: http://your-server:3000 (admin/admin)

Step 5 — Import Dashboard

Grafana → Create → Import → ID: 1860 (Node Exporter Full) → Load

Conclusion

Prometheus + Grafana is the industry standard for server monitoring. Our team deploys complete monitoring stacks with custom dashboards and alerting.

#prometheus #grafana #monitoring #metrics
Share:
🛠️ Need Expert Help?

Don't want to do this yourself?

Our certified engineers implement this for you — correctly, securely, and within hours. Available 24/7 with 15-minute emergency response.

  • ✅ 19+ years experience
  • ✅ 60+ certified engineers
  • ✅ 1,600+ servers managed
  • ✅ 40+ countries served
  • ✅ Plans from $49/mo

Get Expert Help — Free Consultation

We respond within 4 hours · No commitment required

Please enter your name and a valid email.

No spam. Privacy Policy

Comments