Remove "Stage" variable

as we will use distinct Influx and Grafana instances for the different stages/environments.
This commit is contained in:
Maximilian Paß
2023-01-17 17:10:03 +00:00
parent dc562ba7fd
commit 1aced0a130
25 changed files with 11 additions and 45 deletions

View File

@ -4,7 +4,6 @@ result = from(bucket: "poseidon")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "poseidon_aws_executions" or r["_measurement"] == "poseidon_nomad_executions")
|> 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) => r["event_type"] == "creation")
|> group(columns: ["environment_id", "stage"], mode:"by")
|> count()