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

Question:
What is a metric type in Prometheus?

  1. The data type of the metric value
  2. The frequency at which the metric is scraped
  3. The target that the metric is scraped from
  4. The alert rule that the metric is associated with
Answer:
A - The metric type specifies the data type of the metric value, which can be one of four types: counter, gauge, histogram, or summary.
Understanding the metric type is important for properly interpreting and using the metric data.