# ---------- services running ----------
systemctl is-active prometheus prometheus-node-exporter grafana-server
ss -ltnp | grep -E "9090|9100|3000"

# ---------- Node Exporter exposes metrics ----------
curl -s localhost:9100/metrics | head -20
curl -s localhost:9100/metrics | grep -c "^node_"           # number of node_ metrics

# ---------- Prometheus is healthy ----------
curl -s localhost:9090/-/healthy
curl -s localhost:9090/-/ready

# ---------- target is being scraped ----------
curl -s localhost:9090/api/v1/targets | grep -o '"health":"[a-z]*"'      # "up"
curl -s 'localhost:9090/api/v1/query?query=up'                            # value "1"

# ---------- in the browser (screenshots) ----------
# http://localhost:9090/targets   -> node target State = UP, last scrape time
# http://localhost:9090/graph     -> run:  up      (1 = scraped OK, 0 = down)

# SAY: Prometheus pulls metrics from Node Exporter every scrape_interval (15 s);
#      up == 1 for job="node" proves the target is reachable and being scraped.