Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cb-util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Alt
cb-util
Commits
d16e5fa4
Commit
d16e5fa4
authored
9 months ago
by
Razvan Vass
Browse files
Options
Downloads
Patches
Plain Diff
OOn time range change refresh variable
parent
6e6addaf
Branches
Branches containing commit
No related tags found
1 merge request
!11
Adding Dashboards for Percolation and for the roofline dashboard
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dashboards/dashboard_walberla.py
+7
-2
7 additions, 2 deletions
dashboards/dashboard_walberla.py
dashboards/variables.py
+2
-1
2 additions, 1 deletion
dashboards/variables.py
with
9 additions
and
3 deletions
dashboards/dashboard_walberla.py
+
7
−
2
View file @
d16e5fa4
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
dashboards/variables.py
+
2
−
1
View file @
d16e5fa4
...
@@ -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
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment