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

Question:
Which of the following is a good practice for labeling metrics in Prometheus?

  1. Use as few labels as possible to save space
  2. Use labels to add context and meaning to the metric
  3. Use random labels to add complexity to the metric
  4. Use long labels to make the metric stand out
Answer:
B - It is a good practice to use labels to add context and meaning to the metric. This helps to ensure that the metric is easily understandable and meaningful to anyone who reads it