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

Question:
What is the purpose of a relabeling configuration in Prometheus? (Select all that apply)

  1. To filter metrics before scraping them
  2. To transform metric labels
  3. To apply a consistent set of labels to all metrics scraped from a target
  4. To convert metric types
Answer:
B, C - A relabeling configuration in Prometheus is used to transform metric labels, or to apply a consistent set of labels to all metrics scraped from a target. This can be useful for standardizing or normalizing metrics across multiple targets