Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support experimental promql functions #6307

Open
yeya24 opened this issue Nov 3, 2024 · 0 comments
Open

Support experimental promql functions #6307

yeya24 opened this issue Nov 3, 2024 · 0 comments

Comments

@yeya24
Copy link
Contributor

yeya24 commented Nov 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant