phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Live dashboard router question

lkananowicz opened this issue · comments

Hi.

There is an option in application router to pass list of ecto_repos which then can be monitored in the dashboard:

  live_dashboard "/dashboard",
    ecto_repos: [...]
  end

Is there a way to update this list on application startup or at the time /dashboard route is requested in the browser? Some of the repos we use in our project are loaded on the runtime, ecto repository connection string is an environment variable and compilation is done on Jenkins CI so environment variables are not available on jenkins machine.

We have added or are planning to add before the next release an auto discovery option that lists all available named repos, so this feature is coming soon!

Ok, great 👍