How can I override the DEFAULT_GRAFANA_HOST in metric_heads.py?
For my setup, localhost isn’t working and I need to change it to the full link.
I have tried manually inserting the full link in the browser and that works.
If I set RAY_GRAFANA_HOST to the Databricks proxy then it’ll error out on the health check as Databricks will bounce the request from ray dashboard to a login service first that Ray Dashboard cannot handle.
But if I don’t set RAY_GRAFANA_HOST then the health check passes and Ray Dashboard loads the widgets but my local browser can’t load localhost:3000 as the proxy requires It to hit: https://dbc-dp-<my_env_number>.cloud.databricks.com/driver-proxy/o/<my_account>/<my_cluster>/<port>/ as the root address.
We actually have two env vars that so that you can customize both the host the dashboard api server uses to hit grafana and the the url that the browser uses to embed the grafana graphs.
The first, RAY_GRAFANA_HOST can use your localhost value since it sounds like the dashboard api server is running on the same host as your grafana instance.
The second, RAY_GRAFANA_IFRAME_HOST allows you to customize the host used by the browser. This should be set to your https://dbc-db... hostname value.
Let me know if that works!
RAY_GRAFANA_IFRAME_HOST is more a less a “private” configuration since we weren’t sure if users would find it useful. If it is a common usecase, we can make this public and document it.
Thank you for your dedication in the Ray library !
I am fetching over lan, the ip of the head node where the dashboard is hosted. I can access the ray dashboard with configured prometheus and grafana servers also, but it seems that the ray’s iframe embedding grafana’s metrics has an error in the url as the protocol http:// is missing: