PCA (Prometheus Certified Associate) sample exam question with answer 18
Question:
Which of the following best describes the deriv() function in PromQL?
- Calculates the per-second rate of increase of a counter metric
- Calculates the per-second rate of change of a gauge metric
- Calculates the average rate of increase of a counter metric over a time range
- Calculates the rate of change of a gauge metric at a specific point in time
Answer:
B - The deriv() function calculates the per-second rate of change of a gauge metric.
This is useful for seeing how quickly a gauge metric is changing over time