Derivative aggregation

Derivative aggregation #

A parent pipeline aggregation computing the difference between each bucket’s metric and the previous bucket’s — “how much did it change”. The first bucket has no predecessor and answers null.

Parameters for derivative #

  • buckets_path
    (Required, string) Path to the consumed metric in the SAME bucket ("revenue").
  • gap_policy
    (Optional, string) skip (default) or insert_zeros.
  • format
    (Optional, string) Output number format.
  • unit
    (Optional, string) For date_histogram parents: report the derivative per time unit (e.g. "day").
Calendar September 27, 2026
Edit Edit this page