diff --git a/dashboards/dashboard_walberla.py b/dashboards/dashboard_walberla.py index 15358a910eb798876b4ce245b1c84d834287b5ca..5efff6487754d1bdc7a4470fbe4ad7eb109e22b1 100644 --- a/dashboards/dashboard_walberla.py +++ b/dashboards/dashboard_walberla.py @@ -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.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.variables import ( Filter, @@ -742,7 +742,7 @@ def dashboard_percolationgpu(): ) filters = [ - Filter("host", multi=False), + Filter("host", multi=False, refresh=2), Filter(row_repeat), Filter("useParticles"), ] @@ -777,6 +777,10 @@ def dashboard_percolationgpu(): annotations = get_commit_annotation( data_source, "red", "commits", measurment_name) + + overrides0 = [ + get_line_style_regex_override(f"/.*useParticles: 0/", style="dash") + ] groups4 = ["LBM sweep", "Boundary", "Communication"] colors4 = ["blue", "semi-dark-yellow", "semi-dark-purple"] @@ -848,6 +852,7 @@ def dashboard_percolationgpu(): pointSize=5, thresholdsStyleMode='off', gridPos=get_grid_pos(13, 9, 0, 0), + overrides=overrides0, ), # Panel 1 get_time_series_panel( diff --git a/dashboards/variables.py b/dashboards/variables.py index 8883865bae47b86e7428eecfdc3cf4675f67251a..2bd78dca5f8f78654cd35d80aaf350ec514a4fdd 100644 --- a/dashboards/variables.py +++ b/dashboards/variables.py @@ -3,7 +3,7 @@ from collections import namedtuple from dashboards.influx_queries import show_tag_values, get_tag_values, show_field_keys 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( kwargs = { "includeAll": filter.multi, "multi": filter.multi, + "refresh": filter.refresh } if filter.default_value: kwargs.update({"default": filter.default_value})