Install Prometheus From Scratch
Prometheus is staged as a tarball, not installed. Extract it, install the binary, and get the real server healthy on :9090.
A beginner Prometheus & Grafana challenge worth 3 points. Solve it hands-on in a real Prometheus & Grafana environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: A brand-new host was supposed to be monitoring-ready, but nobody actually installed Prometheus. The release tarball is just sitting in /opt/pkgs, unopened.
Your tasks:
- Extract the staged Prometheus tarball in
/opt/pkgs. - Install the
prometheusbinary somewhere on yourPATH(e.g./usr/local/bin). - Create a real data directory for its TSDB (e.g.
/var/lib/prometheus). - Start Prometheus with a config file and that data directory, and confirm
/-/healthyon:9090returns healthy.
Commands to learn: tar, mkdir, running a long-lived process in the background, curl.
Run check when done.