Learn Labs
Instrumentation & Exporters

Self-test

Check your understanding of instrumentation, exporters, and discovery

Self-test10 questions

—/10
  1. Spell out RED and USE. Which would you alert on, and which would you use to diagnose?

  2. Why does the demo app record its metrics in a finally block? What would a dashboard show if it didn't?

  3. A new errors_total{reason} counter shows "No data" on a healthy service. Why, and how do you fix it?

  4. Most exporters query their target at scrape time. What's one advantage and one failure mode of that design?

  5. What does the blackbox exporter catch that the service's own metrics can't? Give three examples.

  6. Why is the Pushgateway's up meaningless for the batch jobs that push to it? What should you alert on instead?

  7. What's the difference between relabel_configs and metric_relabel_configs? Which one would you use to drop a noisy metric?

  8. Walk through the three relabel rules of the blackbox job. What would happen if you left out the third?

  9. What does honor_labels: true do, and why is it needed for the Pushgateway job but dangerous in general?

  10. 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.