PCA (Prometheus Certified Associate) sample exam question with answer 166

Question:
What is the Prometheus client library used for?

  1. Instrumenting applications to generate prometheus metrics and to push metrics to the Push Gateway
  2. Sending Alerts to Alertmanager
  3. Generate logs & traces
  4. Used for Service discovery
Answer:
A - correct