From 1f76b0570e55ec5896594a9452ac5a044333903d Mon Sep 17 00:00:00 2001 From: Timothy Seah Date: Fri, 21 Nov 2025 18:30:58 -0800 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"Revert=20"[data][dashboard]=20Add?= =?UTF-8?q?=20time=5Fto=5Ffirst=5Fbatch=20and=20get=5Fref=5Fbundles?= =?UTF-8?q?=E2=80=A6=20(#58911)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e882d2d9e365fb8542565653adffa27edb25fc46. Signed-off-by: Timothy Seah --- .../dashboards/data_dashboard_panels.py | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py b/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py index 66f5a1cb103e..e87b216d609c 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py +++ b/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py @@ -1050,6 +1050,36 @@ stack=False, ) +ITERATION_TIME_TO_FIRST_BATCH_PANEL = Panel( + id=78, + title="Iteration Time to First Batch", + description="Seconds spent waiting for the first batch after starting iteration", + unit="seconds", + targets=[ + Target( + expr="sum(ray_data_iter_time_to_first_batch_seconds{{{global_filters}}}) by (dataset)", + legend="Seconds: {{dataset}}", + ) + ], + fill=0, + stack=False, +) + +ITERATION_GET_REF_BUNDLES_PANEL = Panel( + id=79, + title="Iteration Get Ref Bundles Time", + description="Seconds spent getting RefBundles from the dataset iterator", + unit="seconds", + targets=[ + Target( + expr="sum(ray_data_iter_get_ref_bundles_seconds{{{global_filters}}}) by (dataset)", + legend="Seconds: {{dataset}}", + ) + ], + fill=0, + stack=False, +) + # Ray Data Metrics (Miscellaneous) SCHEDULING_LOOP_DURATION_PANEL = Panel( id=47, @@ -1390,6 +1420,8 @@ ITERATION_BLOCKS_LOCAL_PANEL, ITERATION_BLOCKS_REMOTE_PANEL, ITERATION_BLOCKS_UNKNOWN_LOCATION_PANEL, + ITERATION_TIME_TO_FIRST_BATCH_PANEL, + ITERATION_GET_REF_BUNDLES_PANEL, ], collapsed=True, ), From b87e89938b4c4ca72e917090ff50c7ea2ba0590b Mon Sep 17 00:00:00 2001 From: Timothy Seah Date: Fri, 21 Nov 2025 18:34:24 -0800 Subject: [PATCH 2/2] change numbers to avoid merge conflict Signed-off-by: Timothy Seah --- .../modules/metrics/dashboards/data_dashboard_panels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py b/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py index e87b216d609c..6aefed74c2b0 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py +++ b/python/ray/dashboard/modules/metrics/dashboards/data_dashboard_panels.py @@ -1051,7 +1051,7 @@ ) ITERATION_TIME_TO_FIRST_BATCH_PANEL = Panel( - id=78, + id=120, title="Iteration Time to First Batch", description="Seconds spent waiting for the first batch after starting iteration", unit="seconds", @@ -1066,7 +1066,7 @@ ) ITERATION_GET_REF_BUNDLES_PANEL = Panel( - id=79, + id=121, title="Iteration Get Ref Bundles Time", description="Seconds spent getting RefBundles from the dataset iterator", unit="seconds",