Files
poseidon/deploy/grafana-dashboard/queries/environment-ids.flux
Maximilian Paß 137e3ff1ee Implement pull request comments #200.
Co-authored-by: Sebastian Serth <mrserth@users.noreply.github.com>
2022-10-29 23:20:29 +01:00

8 lines
308 B
Plaintext

from(bucket: "poseidon/autogen")
|> range(start: -1y)
|> filter(fn: (r) => r["_measurement"] == "poseidon_environments")
|> filter(fn: (r) => (not exists r.stage) or contains(value: r["stage"], set: ${stages:json}))
|> keep(columns: ["id"])
|> distinct(column: "id")
|> keep(columns: ["_value"])