PCA (Prometheus Certified Associate) sample exam question with answer 62
Question:
What is the role of the job label in Prometheus configuration?
- To specify the target for scraping metrics
- To group metrics from different targets together
- To specify the scrape interval for a target
- To specify the alert rules for a target
Answer:
B - The job label is used to group metrics from different targets together, so that they can be treated as a single logical unit in Prometheus.
This is useful when you have multiple instances of the same service running on different machines or in different environments