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:

  1. Extract the staged Prometheus tarball in /opt/pkgs.
  2. Install the prometheus binary somewhere on your PATH (e.g. /usr/local/bin).
  3. Create a real data directory for its TSDB (e.g. /var/lib/prometheus).
  4. Start Prometheus with a config file and that data directory, and confirm /-/healthy on :9090 returns healthy.

Commands to learn: tar, mkdir, running a long-lived process in the background, curl.

Run check when done.