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

Question:
What is the purpose of metric relabeling in Prometheus?

  1. To modify the names and value of scraped metrics before they are stored
  2. To apply custom labels to scraped metrics
  3. To filter scraped metrics based on their labels
  4. To limit the number of metrics that are scraped
Answer:
A - is the correct answer. Metric relabeling in Prometheus allows users to modify the names or values of scraped metrics, or to drop certain metrics altogether, before they are stored in the time series database. This can be useful for data preprocessing and quality control