Remove "Stage" variable
as we will use distinct Influx and Grafana instances for the different stages/environments.
This commit is contained in:
@ -31,6 +31,11 @@ colours = [
|
||||
|
||||
with open("environments.json") as f:
|
||||
environments = json.load(f)
|
||||
environments.sort()
|
||||
for environment in environments:
|
||||
|
||||
environment_identifier = []
|
||||
for environment in environments["executionEnvironments"]:
|
||||
environment_identifier.append(str(environment["id"]) + "/" + environment["image"].removeprefix("openhpi/co_execenv_"))
|
||||
|
||||
environment_identifier.sort()
|
||||
for environment in environment_identifier:
|
||||
deep_update_dict(color_mapping_environments, color_mapping(environment, colours.pop(0)))
|
||||
|
@ -2,17 +2,6 @@ from grafanalib.core import Template
|
||||
|
||||
from utils.utils import read_query
|
||||
|
||||
stage_variable = Template(
|
||||
dataSource="Flux",
|
||||
label="Stage",
|
||||
name="stages",
|
||||
query=read_query("stages"),
|
||||
refresh=1,
|
||||
includeAll=True,
|
||||
multi=True,
|
||||
default="production",
|
||||
)
|
||||
|
||||
environment_variable = Template(
|
||||
dataSource="Flux",
|
||||
label="Environment IDs",
|
||||
|
Reference in New Issue
Block a user