PCA

PCA practice questions, page 3 of 3, with answer review and explanations.

Question 11

What is the difference between client libraries and exporters?

  1. Exporters expose metrics for scraping. Client libraries push metrics via Remote Write.
  2. Exporters are written in Go. Client libraries are written in many languages.
  3. Exporters run next to the services to monitor, and use client libraries internally.
  4. Exporters and client libraries mean the same thing.

Question 12

What should you do with counters that have labels?

  1. Instantiate them with their possible label values when creating them so they are exposed with a zero value.
  2. Investigate if you can move their label value inside their metric name to limit the number of labels.
  3. Save their state between application runs so you can restore their last value on startup.
  4. Make sure every counters with labels has an extra counter, aggregated, without labels.