This automated setup script installs and configures:
✅ Prometheus - Metrics Collection
✅ Node Exporter - Server Monitoring
✅ Grafana - Data Visualization
✅ Firewall Configuration (optional, auto-detected)
git clone https://github.com/Baumfaust/prometheus-grafana-setup.git
cd prometheus-grafana-setup
chmod +x install_monitoring.sh
./install_monitoring.sh
The script will:
✔️ Detect your system architecture
✔️ Install necessary packages
✔️ Set up services for Prometheus, Grafana, and Node Exporter
✔️ Optionally configure iptables firewall
| Service | URL |
|---|---|
| 📊 Grafana | http://your-server-ip:3000 |
| 📈 Prometheus | http://your-server-ip:9090 |
| 🔍 Node Exporter | http://your-server-ip:9100/metrics |
✨ Fully Automated – One command to set up everything
✨ Firewall Rules – Only if iptables is installed
✨ Service Management – Enables & starts systemd services
✨ Logging Enabled – Outputs to setup.log
- ✅ Ubuntu / Debian (64-bit)
- ✅
sudopermissions - ✅ Internet connection
To remove all services and configurations:
sudo systemctl stop prometheus node_exporter grafana-server
sudo systemctl disable prometheus node_exporter grafana-server
sudo rm -rf /usr/local/bin/node_exporter /usr/local/bin/prometheus /etc/prometheus /var/lib/prometheus
sudo apt remove --purge grafana -y
📌 Feel free to fork, improve, and submit PRs!
💬 Questions? Open an issue or reach out!
🚀 Happy Monitoring! 🎯