diff --git a/dashboards/dashboard_base.py b/dashboards/dashboard_base.py index 847e64bf7dd6db3a5ddafdfe971138ce290a4268..f95efd88e5a8b4d575f23e08fd2fea0c41b834c7 100644 --- a/dashboards/dashboard_base.py +++ b/dashboards/dashboard_base.py @@ -28,7 +28,7 @@ def get_annotation(*args, **kwargs): def get_commit_annotation(datasource: str, color: str, name: str, measurment_name: str, *, commit_key: str = "commit"): query = (f"SELECT first(\"{commit_key}\") FROM " f"( SELECT * FROM \"{measurment_name}\" " - f"WHERE host =~ /^$host$/ AND $timeFilter) GROUP BY \"${commit_key}\"") + f"WHERE host =~ /^$host$/ AND $timeFilter) GROUP BY \"{commit_key}\"") return get_annotation(datasource, color, name, query) @@ -125,7 +125,8 @@ def build_dashboard(options: DashboardOptions, **asdict(options), **kwargs, templating=Templating(templating), - time=Time('now-7d', 'now'), + time=Time('now-14d', 'now'), + refresh='5m', ) return dashboard.auto_panel_ids()