PCA (Prometheus Certified Associate) sample exam question with answer 39
Question:
Which of the following statements are true about the irate function in PromQL? Select all that apply.
- The irate function calculates the per-second rate of increase of a counter metric
- The irate function is more accurate than the rate function for short time intervals
- The irate function requires a range vector as an argument
- The irate function is only applicable to counter metrics
Answer:
A, B, C - The irate function calculates the per-second rate of increase of a counter metric and is more accurate than the rate function for short time intervals because it uses a more accurate algorithm.
The irate function requires a range vector as an argument, and it can be applied to both counter and gauge metrics