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

Question:
Which Prometheus metric type should be used to expose a value that can only increase or be reset to zero on restart, such as the number of requests served or tasks completed?

  1. Counter
  2. Gauge
  3. Histogram
  4. Summary
Answer:
A - is the correct answer. Counters are used to represent a cumulative metric that can only increase or be reset to zero on restart, such as the number of requests served or tasks completed