expression on two queries below gives an error - “expression request error”:
from(bucket: “stat”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == “sgsnSch4”)
|> filter(fn: (r) => r["_field"] == “2G-attch-accept”)
|> filter(fn: (r) => r[“node”] == “${node}”)
|> filter(fn: (r) => r[“servname”] == “gprs”)
|> derivative(unit: 1s, nonNegative: true)
from(bucket: “stat”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == “sgsnSch4”)
|> filter(fn: (r) => r["_field"] == “2G-attach-reject”)
|> filter(fn: (r) => r[“node”] == “${node}”)
|> filter(fn: (r) => r[“servname”] == “gprs”)
|> derivative(unit: 1s, nonNegative: true)
Expression: $A+$B
Where ${node} is the variable defined for dashboard. If i use node’s name instead of variable, everything is ok.
What’s wrong with that?