Learn Labs
Foundations

Self-test

Check your understanding of the stack and the scrape loop

Self-test8 questions

—/8
  1. Name the four things the Prometheus server does continuously, and the one thing Alertmanager does that Prometheus deliberately doesn't.

  2. Where do the job and instance labels come from? Why doesn't the application set them itself?

  3. A target's scrape fails. List everything Prometheus writes or changes as a result.

  4. Why is there no timestamp on each line of a /metrics response?

  5. You edited prometheus.yml and called /-/reload, but nothing changed. What two places would you check first?

  6. What lives in the head block, and what protects it from being lost in a crash?

  7. Why is up == 0 not enough on its own to page someone?

  8. Design question

    Your team wants to monitor 200 short-lived CI jobs that each run for 20 seconds. Sketch two ways to get their metrics into Prometheus and the trade-off between them.