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 upExponentation (`^`) operator does not drop metric name #5327
Comments
juliusv
added
help wanted
low hanging fruit
kind/bug
component/promql
labels
Mar 10, 2019
This comment has been minimized.
This comment has been minimized.
|
I'll take a crack at this! |
infoverload
referenced this issue
Mar 10, 2019
Merged
Exponentation operator to drop metric name in result of op operation #5329
brian-brazil
closed this
in
#5329
Mar 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
juliusv commentedMar 10, 2019
See http://demo.robustperception.io:9090/graph?g0.range_input=1h&g0.expr=up%20%5E%202&g0.tab=1
Like any other binary arithmetic operator,
^should drop the metric name.Reason is this line:
prometheus/promql/engine.go
Line 1896 in d390497