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

Question:
Which of the following is a method for creating custom metrics in Prometheus?

  1. Adding code to the Prometheus server
  2. Installing a Prometheus plugin
  3. Writing an exporter
  4. Configuring a data source
Answer:
C - writing an exporter is a method for creating custom metrics in Prometheus. An exporter is a piece of code that exposes metrics data in a format that Prometheus can understand, allowing it to be scraped and stored