Skip to content

Commit

Permalink
Add "all" option for SessionName (ray-project#35408)
Browse files Browse the repository at this point in the history
This opens as default in the Grafana page but for the Dashboard UI, the default is still scoped to the latest session.
  • Loading branch information
alanwguo authored May 17, 2023
1 parent f7f18b2 commit dad924e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,6 @@ def max_plus_pending(max_resource, pending_resource):
name="DEFAULT",
default_uid="rayDefaultDashboard",
panels=DEFAULT_GRAFANA_PANELS,
standard_global_filters=['SessionName="$SessionName"'],
standard_global_filters=['SessionName=~"$SessionName"'],
base_json_file_name="default_grafana_dashboard_base.json",
)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"templating": {
"list": [
{
"allValue": null,
"allValue": ".+",
"current": {
"selected": false
},
Expand All @@ -34,7 +34,7 @@
"description": "Filter queries to specific ray sessions.",
"error": null,
"hide": 0,
"includeAll": false,
"includeAll": true,
"label": null,
"multi": false,
"name": "SessionName",
Expand Down
2 changes: 1 addition & 1 deletion python/ray/tests/test_metrics_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_metrics_folder_with_dashboard_override(
for panel in contents["panels"]:
for target in panel["targets"]:
# Check for standard_global_filters
assert 'SessionName="$SessionName"' in target["expr"]
assert 'SessionName=~"$SessionName"' in target["expr"]
# Check for custom global_filters
assert global_filters in target["expr"]
for variable in contents["templating"]["list"]:
Expand Down

0 comments on commit dad924e

Please sign in to comment.