Files
poseidon/deploy/grafana-dashboard/poseidon.dashboard.py
Maximilian Paß 44aa5d73a2 Grafana as Code
Transfer our dashboard into a code representation via grafanalib.
2022-10-29 23:20:29 +01:00

26 lines
641 B
Python

from grafanalib.core import Dashboard, Templating, Time
from availability_row import availability_row
from general_row import general_row
from runner_insights_row import runner_insights_row
from variables import stage_variable, environment_variable
dashboard = Dashboard(
title="Poseidon autogen",
timezone="browser",
panels=[
general_row,
runner_insights_row,
availability_row
],
templating=Templating(list=[
stage_variable,
environment_variable
]),
editable=True,
refresh="30s",
time=Time('now-6h', 'now'),
uid="P21Bh1SVk",
version=1
).auto_panel_ids()