PCA (Prometheus Certified Associate) sample exam question with answer 519
Question:
What is the purpose of metric relabeling in Prometheus?
- To modify the names and value of scraped metrics before they are stored
- To apply custom labels to scraped metrics
- To filter scraped metrics based on their labels
- 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