U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation PCA Exam - Topic 4 Question 11 Discussion

Which kind of metrics are associated with the function deriv()?
B) Gauges
A) Counters
C) Summaries
D) Histograms

Linux Foundation PCA Exam - Topic 4 Question 11 Discussion

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

Which kind of metrics are associated with the function deriv()?

Show Suggested Answer Hide Answer
Suggested Answer: B

The deriv() function in PromQL calculates the per-second derivative of a time series using linear regression over the provided time range. It estimates the instantaneous rate of change for metrics that can both increase and decrease --- which are typically gauges.

Because counters can only increase (except when reset), rate() or increase() functions are more appropriate for them. deriv() is used to identify trends in fluctuating metrics like CPU temperature, memory utilization, or queue depth, where values rise and fall continuously.

In contrast, summaries and histograms consist of multiple sub-metrics (e.g., _count, _sum, _bucket) and are not directly suited for derivative calculation without decomposition.


Extracted and verified from Prometheus documentation -- PromQL Functions -- deriv(), Understanding Rates and Derivatives, and Gauge Metric Examples.

Contribute your Thoughts:

0/2000 characters
Candra
1 month ago
I think it's B) Gauges, right?
upvoted 0 times
...
Ernest
2 months ago
Definitely A) Counters!
upvoted 0 times
...
Leota
2 months ago
Histograms sound familiar, but I can't recall if they fit with the deriv() function. I should have reviewed that section more thoroughly.
upvoted 0 times
...
Patria
2 months ago
I feel like I might be mixing up counters and summaries here. I need to double-check which one is associated with deriv().
upvoted 0 times
...
Dahlia
3 months ago
I remember practicing with similar questions, and I think gauges might be the right answer since they measure values at a specific point in time.
upvoted 0 times
...
Edelmira
3 months ago
I think the deriv() function is related to metrics, but I'm not sure if it's more about counters or gauges.
upvoted 0 times
...

Save Cancel