Prometheus: Install Prometheus
Prometheus is a single program with no installer and no database to set up. You download it, unpack it, and run it.
Download and unpack
Fetch the Linux release archive and unpack it into a folder.
tar xzf prometheus-3.16.0.linux-amd64.tar.gz
cd prometheus-3.16.0.linux-amd64Check the version
One flag prints the version. It proves the download is good.
prometheus --versionStart the server
Start Prometheus with its config file. It serves its web page on port 9090.
prometheus --config.file=prometheus.yml --web.listen-address=127.0.0.1:9090Example
prometheus --versionKey points
- Prometheus ships as one program file plus a config file, nothing else to install.
- Download the release for your machine from the Prometheus download page.
- This course pins Prometheus 3.16.0, the latest stable release at the time of writing.
- The 3.13 line is the long-term support release, supported to 31 July 2027.
- Choose 3.13 if you want the conservative choice with the longest support window.
- Unpack the archive and run the program file called prometheus from inside it.
In this example, the version flag prints the full build details of the Prometheus program. The first line names version 3.16.0, the version this course pins. The build date and platform confirm the download matches this machine.
Note
Prometheus needs no cloud account and no database, as it stores its own data on disk.
Try it Yourself
Edit the code, then press Run.
Running is simulated · Rust Playground
Exercise
Which Prometheus version does this course pin, and which is the conservative long-term choice?