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

Question:
What is a label in Prometheus?

  1. A group of metrics that are scraped together
  2. A metric that represents the overall status of a target
  3. A key-value pair that provides additional information about a metric
  4. A rule that triggers an alert when certain conditions are met
Answer:
C - A label is a key-value pair that provides additional information about a metric.
This information can be used to filter and aggregate metrics in various ways.