Type to search.

PromQL functions

Serverless

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Serverless interfaces and procedures might differ from classic Elastic Stack deployments.

Stack GA 9.5+ …

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Generally available since 9.5

    This functionality is generally available and ready for production usage.

  • Preview in 9.4

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

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 or by label values.

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