Hi @Anaisdg,
Sorry for the late reply, I have setup a variable of servers within Grafana called Host
Server1, Server2, Server3
This also contains an option for “All”
As Flux cant seem to handle the comma separated value as it stands I am using the /${Host:pipe}/
Query created to call the data
from(bucket: “telegraf”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: ® => r[“host”] =~ /${Host:pipe}/)
|> filter(fn: ® => r[“objectname”] == “Processor”)
|> filter(fn: ® => r["_field"] == “Percent_Processor_Time”)
|> filter(fn: ® => r[“instance”] == “_Total”)
|> filter(fn: ® => r["_measurement"] == “win_cpu”)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: “mean”)
The issue I have is that I get the following error message and dont know why,
“regex parse error: ${Host:pipe} error: repetition quantifier expects a valid decimal(1)”
Can anyone point me in the right direction please?