In a Grafana dashboard I want to filter with a Grafana variable with multi-value and all options. What is the correct Flux syntax for this ($server and $database)?
from(bucket: “Telegraf”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: ® => r["_measurement"] == “postgresql”)
|> filter(fn: ® => r[“server”] == “{server}")
|> filter(fn: (r) => r["db"] == "{database}”)
|> filter(fn: ® => r["_field"] == “tup_fetched”)
|> derivative(unit: v.windowPeriod, nonNegative: false)
|> yield(name: “derivative”)