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

Question:
Which of the following statements are true about labels in Prometheus?

  1. Labels can be changed dynamically during runtime
  2. Labels are used to identify different instances of the same metric
  3. Labels can be used for grouping and aggregation
  4. Labels are required for all metrics
Answer:
A. B. C - Labels are key-value pairs that allow for dimensional data. They can be changed dynamically during runtime and are used to identify different instances of the same metric. Labels can also be used for grouping and aggregation. They are not required for all metrics, but are included in the data model