Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation PCA Exam - Topic 2 Question 20 Discussion

What does the increase() function do in PromQL?
B) Returns the absolute increase in a counter over a specified range.
A) Calculates the percentage increase of a counter over time.
C) Calculates the derivative of a gauge over time.
D) Returns the total sum of values in a vector.

Linux Foundation PCA Exam - Topic 2 Question 20 Discussion

Actual exam question for Linux Foundation's PCA exam
Question #: 20
Topic #: 2
[All PCA Questions]

What does the increase() function do in PromQL?

Show Suggested Answer Hide Answer
Suggested Answer: B

The increase() function computes the total increase in a counter metric over a specified range vector. It accounts for counter resets and only measures the net change in the counter's value during the time window.

Example:

increase(http_requests_total[5m])

This query returns how many HTTP requests occurred in the last five minutes. Unlike rate(), which provides a per-second average rate, increase() gives the absolute number of increments.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel