PromQL functions

These functions are based on the Prometheus query functions. Refer to the Prometheus documentation for the full semantics. Each function entry lists its differences from Prometheus, including the uses that aren't supported yet.

Functions that take a range vector and return an instant vector.

Functions that aggregate an instant vector across series.

Functions that operate on histogram metrics.

Mathematical, trigonometric, and rounding functions.

Functions that extract date and time components from timestamps.

Functions that convert between scalars and instant vectors.

Functions that derive new labels from existing label values.

Functions that sort an instant vector by sample value.

The following PromQL functions are recognized but not supported yet in Elasticsearch. Using them returns a client error (4xx):

  • absent
  • count_values
  • double_exponential_smoothing
  • group
  • histogram_stddev
  • histogram_stdvar
  • holt_winters
  • info
  • mad_over_time
  • resets
  • sort_by_label
  • sort_by_label_desc