Skip to content

[Dashboard] A get_dashboard_url() API #52629

@wingkitlee0

Description

@wingkitlee0

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_url

so 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

No one assigned

    Labels

    community-backlogdashboardIssues specific to the Ray DashboardenhancementRequest for new feature and/or capabilityobservabilityIssues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or ProfilingtriageNeeds triage (eg: priority, bug/not-bug, and owning component)usability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions