Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmin and max as binary operators #5177
Comments
This comment has been minimized.
This comment has been minimized.
|
You can do |
This comment has been minimized.
This comment has been minimized.
|
Thank you @brian-brazil. |
xinau
closed this
Feb 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xinau commentedFeb 1, 2019
•
edited
Proposal
Adding min and max as binary operators to promql.
Use case. Why is this important?
I've got two different timeseries and want to join them by using the maximum value of the two.
For example
I would like to do the following promql
instead off doing something like this
https://www.maa.org/programs/faculty-and-departments/classroom-capsules-and-notes/the-maximum-and-minimum-of-two-numbers-using-the-quadratic-formula
, as this can get difficult with (
on, group_left ...)