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

Question:
Which of the following is a recommended best practice for defining metric names in Prometheus?

  1. Use short, cryptic names to save space
  2. Use descriptive names that are easy to understand
  3. Use names that include special characters like underscores and hyphens
  4. Use names that are identical to the names of the functions
Answer:
B - is the correct answer. Metric names should be descriptive and easy to understand, as this makes it easier for users to interpret and analyze the metrics. Short, cryptic names should be avoided because they can be confusing and difficult to understand