Skip to content

PromQL: math/trig scalar-transform functions (abs/ceil/floor/clamp/ln/…) unsupported #45

Closed

Description

@zzylol

Summary

Math / trig scalar-transform functions parse but are rejected (UnsupportedFunction): abs, ceil, floor, round, exp, ln, log2, log10, sqrt, clamp/clamp_min/clamp_max, sgn, the sin/cos/tan/asin/… trig family, pi, rad, deg.

Corpus impact

81 rejections (4.2%).

Examples

abs(-1 * http_requests{job="api"})
floor(0.004 * http_requests{job="api"})
clamp_max(go_goroutines, 5)

Notes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpromqlPromQL front-end lowering (L1→L2)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions