Self-test
Check your understanding of instrumentation, exporters, and discovery
Self-test10 questions
Spell out RED and USE. Which would you alert on, and which would you use to diagnose?
Why does the demo app record its metrics in a
finallyblock? What would a dashboard show if it didn't?A new
errors_total{reason}counter shows "No data" on a healthy service. Why, and how do you fix it?Most exporters query their target at scrape time. What's one advantage and one failure mode of that design?
What does the blackbox exporter catch that the service's own metrics can't? Give three examples.
Why is the Pushgateway's
upmeaningless for the batch jobs that push to it? What should you alert on instead?What's the difference between
relabel_configsandmetric_relabel_configs? Which one would you use to drop a noisy metric?Walk through the three relabel rules of the blackbox job. What would happen if you left out the third?
What does
honor_labels: truedo, and why is it needed for the Pushgateway job but dangerous in general?- Design question
You need to monitor 300 VMs whose inventory lives in a CMDB with an HTTP API. Design the discovery and labeling, including how team ownership ends up on every alert.