Remove "Stage" variable
as we will use distinct Influx and Grafana instances for the different stages/environments.
This commit is contained in:
@ -5,7 +5,6 @@ result = from(bucket: "poseidon")
|
||||
|> filter(fn: (r) => r["_field"] == "duration")
|
||||
|> filter(fn: (r) => r["_measurement"] == "poseidon_/execute" or r["_measurement"] == "poseidon_/files" or r["_measurement"] == "poseidon_/websocket")
|
||||
|> filter(fn: (r) => contains(value: r["environment_id"], set: ${environment_ids:json}))
|
||||
|> filter(fn: (r) => (not exists r.stage) or contains(value: r["stage"], set: ${stages:json}))
|
||||
|> filter(fn: (r) => exists r.environment_id)
|
||||
|> keep(columns: ["_value", "runner_id", "environment_id", "stage"])
|
||||
|> group(columns: ["environment_id", "stage"])
|
||||
|
Reference in New Issue
Block a user