Skip to content

Support experimental promql functions #6307

Closed
@yeya24

Description

@yeya24

Is your feature request related to a problem? Please describe.

Prometheus has a feature flag for experimental promql functions https://prometheus.io/docs/prometheus/latest/feature_flags/#experimental-promql-functions. Certain functions and aggregations are only available if the feature flag is enabled.

Cortex currently doesn't expose those promql functions as there is no way to enable the feature flag.

Current experimental functions:

  • sort_by_label
  • sort_by_label_desc
  • mad_over_time
  • info

Experimental aggregations:

  • limitk
  • limit_ratio

Describe the solution you'd like
Expose the feature flag in the query engine and implement those functions/aggregations if necessary.

It would be nice to also cover those functions in fuzz test to ensure correctness.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions