Question 11
What is the difference between client libraries and exporters?
- Exporters expose metrics for scraping. Client libraries push metrics via Remote Write.
- Exporters are written in Go. Client libraries are written in many languages.
- Exporters run next to the services to monitor, and use client libraries internally.
- Exporters and client libraries mean the same thing.
Question 12
What should you do with counters that have labels?
- Instantiate them with their possible label values when creating them so they are exposed with a zero value.
- Investigate if you can move their label value inside their metric name to limit the number of labels.
- Save their state between application runs so you can restore their last value on startup.
- Make sure every counters with labels has an extra counter, aggregated, without labels.