Install Prometheus on your VPS
Infraa installs Prometheus and node_exporter on your VPS from the distro's default apt repository — Prometheus 2.31 on Ubuntu 22.04, 2.42 on Debian 12, 2.45 on Ubuntu 24.04. The distro's stock config already scrapes Prometheus itself and the local node_exporter, so CPU, memory, disk, and network metrics work immediately after one approval.
- Versions
- Prometheus 2.31 on Ubuntu 22.04; 2.42 on Debian 12; 2.45 on Ubuntu 24.04 (distro packages)
- Works on
- Ubuntu 22.04, Ubuntu 24.04, and Debian 12
- Package source
- Distro apt repository
What does the Prometheus install do?
- Installs the prometheus and prometheus-node-exporter packages via apt — no third-party repository or signing key.
- Enables and starts both systemd units.
- Writes no configuration: the distro's stock prometheus.yml already scrapes Prometheus itself and the local node_exporter, with 15-day retention.
- Never overwrites a scrape config you already have: targets, alerting rules, and retention tuning are added later through chat.
How do I install Prometheus with Infraa?
Connect your server
Run the Infraa install one-liner (curl install.infraa.sh | sh) on your VPS. The agent registers over an outbound connection in about 30 seconds — no inbound ports, no SSH keys to share.
Pick the service
Choose it from the one-click catalog in the dashboard, or just ask in chat. Infraa turns your request into a concrete, reviewable plan.
Review and approve
Read exactly what will run, then approve. The agent executes only the approved, cryptographically signed steps and streams progress live.
What happens after the install?
Infraa checks Prometheus every 60 seconds — both units, plus ports 9090 and 9100. The distro default has no authentication and listens on all interfaces, so anyone who can reach port 9090 can read every metric; Infraa's standing recommendation is to put it behind nginx with HTTPS and auth, restrict it with your provider's firewall, or bind it to localhost.
Prometheus on Infraa — common questions
01What metrics do I get out of the box?
Host metrics immediately: the stock config scrapes the bundled node_exporter, so CPU, memory, disk, and network are graphable from minute one, with 15-day retention. Your own application targets are added later through chat — never by overwriting an existing scrape config.
02Does Prometheus come with authentication?
No — the distro default has no auth and listens on all interfaces, so anyone who can reach port 9090 can read every metric (and 9100 exposes detailed host info). Put it behind nginx with HTTPS and auth, firewall the ports, or ask in chat to bind it to localhost; Infraa proposes this as a standing recommendation.
03Which Prometheus version does Infraa install?
The version your distro ships and supports: 2.31 on Ubuntu 22.04, 2.42 on Debian 12, 2.45 on Ubuntu 24.04. Packages come from the default apt repository, so there's no third-party repo or signing key to trust.
Connect a server in 30 seconds, then install Prometheus from the catalog or just ask in chat.