Prometheus scrapes metrics; Grafana graphs them. On a lab VPS you can install both from apt or official packages.
Steps
Fast path with Ubuntu packages (distro versions):
sudo apt updatesudo apt install -y prometheus prometheus-node-exporter grafanaStart the services:
sudo systemctl enable --now prometheus prometheus-node-exporter grafana-serversudo systemctl status prometheus grafana-server --no-pagerOpen Grafana in the browser (port 3000) and add Prometheus as a datasource (typical URL http://127.0.0.1:9090).
ss -lntp | grep -E '9090|3000|9100'Lock access with a firewall or SSH tunnel — do not expose 3000/9090 to the internet without auth.
ssh -L 3000:127.0.0.1:3000 user@VPS_IP
Tips
- Change the Grafana admin password on first login.
- For newer builds, use the official Prometheus/Grafana repos instead of an old distro package.
ext step
VPS with RAM for time series: Deploy your Cloud VPS.