
as we will use distinct Influx and Grafana instances for the different stages/environments.
7 lines
441 B
Plaintext
7 lines
441 B
Plaintext
from(bucket: "poseidon")
|
|
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|
|
|> filter(fn: (r) => r["_field"] == "duration")
|
|
|> filter(fn: (r) => (not exists r.environment_id) or contains(value: r["environment_id"], set: ${environment_ids:json}))
|
|
|> keep(columns: ["_time", "_value", "_measurement"])
|
|
|> aggregateWindow(every: duration(v: int(v: v.windowPeriod) * 10), fn: (tables=<-, column) => tables |> quantile(q: 0.999))
|