Skip to content
Snippets Groups Projects
Commit d16e5fa4 authored by Razvan Vass's avatar Razvan Vass
Browse files

OOn time range change refresh variable

parent 6e6addaf
Branches
No related tags found
1 merge request!11Adding Dashboards for Percolation and for the roofline dashboard
...@@ -20,7 +20,7 @@ from dashboards.dashboard_base import ( ...@@ -20,7 +20,7 @@ from dashboards.dashboard_base import (
) )
from dashboards.influx_queries import join_variable_and, get_variable_condition_with_tag, get_variable_tag, join_conditions, get_variable_condition, get_variable_condition_without_regex, get_variable_condition_unbounded from dashboards.influx_queries import join_variable_and, get_variable_condition_with_tag, get_variable_tag, join_conditions, get_variable_condition, get_variable_condition_without_regex, get_variable_condition_unbounded
from dashboards.legends import Units, AxisLabel from dashboards.legends import Units, AxisLabel
from dashboards.overrides import get_color_regex_override from dashboards.overrides import get_color_regex_override, get_line_style_regex_override
from dashboards.panels import PanelInfos, get_time_series_panel, get_table_panel, get_bar_chart_panel, get_pie_chart_panel from dashboards.panels import PanelInfos, get_time_series_panel, get_table_panel, get_bar_chart_panel, get_pie_chart_panel
from dashboards.variables import ( from dashboards.variables import (
Filter, Filter,
...@@ -742,7 +742,7 @@ def dashboard_percolationgpu(): ...@@ -742,7 +742,7 @@ def dashboard_percolationgpu():
) )
filters = [ filters = [
Filter("host", multi=False), Filter("host", multi=False, refresh=2),
Filter(row_repeat), Filter(row_repeat),
Filter("useParticles"), Filter("useParticles"),
] ]
...@@ -777,6 +777,10 @@ def dashboard_percolationgpu(): ...@@ -777,6 +777,10 @@ def dashboard_percolationgpu():
annotations = get_commit_annotation( annotations = get_commit_annotation(
data_source, "red", "commits", measurment_name) data_source, "red", "commits", measurment_name)
overrides0 = [
get_line_style_regex_override(f"/.*useParticles: 0/", style="dash")
]
groups4 = ["LBM sweep", "Boundary", "Communication"] groups4 = ["LBM sweep", "Boundary", "Communication"]
colors4 = ["blue", "semi-dark-yellow", "semi-dark-purple"] colors4 = ["blue", "semi-dark-yellow", "semi-dark-purple"]
...@@ -848,6 +852,7 @@ def dashboard_percolationgpu(): ...@@ -848,6 +852,7 @@ def dashboard_percolationgpu():
pointSize=5, pointSize=5,
thresholdsStyleMode='off', thresholdsStyleMode='off',
gridPos=get_grid_pos(13, 9, 0, 0), gridPos=get_grid_pos(13, 9, 0, 0),
overrides=overrides0,
), ),
# Panel 1 # Panel 1
get_time_series_panel( get_time_series_panel(
......
...@@ -3,7 +3,7 @@ from collections import namedtuple ...@@ -3,7 +3,7 @@ from collections import namedtuple
from dashboards.influx_queries import show_tag_values, get_tag_values, show_field_keys from dashboards.influx_queries import show_tag_values, get_tag_values, show_field_keys
Filter = namedtuple( Filter = namedtuple(
"Filter", ("name", "multi", "default_value"), defaults=("", True, "") "Filter", ("name", "multi", "default_value", "refresh"), defaults=("", True, "", 1)
) )
...@@ -46,6 +46,7 @@ def get_time_dependend_dashboard_variable( ...@@ -46,6 +46,7 @@ def get_time_dependend_dashboard_variable(
kwargs = { kwargs = {
"includeAll": filter.multi, "includeAll": filter.multi,
"multi": filter.multi, "multi": filter.multi,
"refresh": filter.refresh
} }
if filter.default_value: if filter.default_value:
kwargs.update({"default": filter.default_value}) kwargs.update({"default": filter.default_value})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment