-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
community-backlogdashboardIssues specific to the Ray DashboardIssues specific to the Ray DashboardenhancementRequest for new feature and/or capabilityRequest for new feature and/or capabilityobservabilityIssues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or ProfilingIssues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or ProfilingtriageNeeds triage (eg: priority, bug/not-bug, and owning component)Needs triage (eg: priority, bug/not-bug, and owning component)usability
Description
Description
Currently, to get the dashboard URL, one needs to do a ctx = ray.init(...); print(ctx.dashboard_url). This is not very convenient in interactive / notebook environment (users either need to remember to assign a variable in the beginning or rerun ray.init).
We can add a get_dashboard_url() method to RayContext:
def get_dashboard_url(self) -> str:
return self.worker.node.webui_urlso that users can get it by using the runtime context ctx = ray.get_runtime_context().
However I am not sure the use of other lesser known API, e.g., get_address_for_submission_client(None)
Use case
In some platforms, e.g., databricks / sagemaker, there are custom URLs used for port forwarding. Having an API to grab the dashboard URL will be useful
Metadata
Metadata
Assignees
Labels
community-backlogdashboardIssues specific to the Ray DashboardIssues specific to the Ray DashboardenhancementRequest for new feature and/or capabilityRequest for new feature and/or capabilityobservabilityIssues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or ProfilingIssues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or ProfilingtriageNeeds triage (eg: priority, bug/not-bug, and owning component)Needs triage (eg: priority, bug/not-bug, and owning component)usability