Self-test
Check your understanding of the stack and the scrape loop
Self-test8 questions
Name the four things the Prometheus server does continuously, and the one thing Alertmanager does that Prometheus deliberately doesn't.
Where do the
jobandinstancelabels come from? Why doesn't the application set them itself?A target's scrape fails. List everything Prometheus writes or changes as a result.
Why is there no timestamp on each line of a
/metricsresponse?You edited
prometheus.ymland called/-/reload, but nothing changed. What two places would you check first?What lives in the head block, and what protects it from being lost in a crash?
Why is
up == 0not enough on its own to page someone?- 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.