Phoenix LiveDashboard mounts one route and shows you the BEAM, the OS and your Ecto repo
Realtime dashboard with metrics, request logging, plus storage, OS and VM insights
At a glance
- What is it?
- Phoenix LiveDashboard is a LiveView-based page you forward a router path to. It reports on the running node: processes, ports, sockets, ETS, OS load, telemetry charts and Ecto statistics. Its main risk is exposure, because the route needs authentication before it goes near production.
- Who is it for?
- Use it on any Phoenix app where you want to inspect processes, ETS tables and telemetry events without extra infrastructure, and keep it behind an auth pipeline outside dev. Skip it if you need stored history or alerting, since nothing in the repository describes either.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly Elixir, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- phoenixframework/phoenix_live_dashboard2,174 ★ · +0
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| phoenixframework/phoenix_live_dashboard | 2.2k | 2.2k |
0 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
One live_dashboard line in the router is the whole mount
LiveDashboard is a Phoenix router macro. You import Phoenix.LiveDashboard.Router, forward a path with live_dashboard, and the page appears at that path. There is no separate process to deploy and no agent to install on the monitored node, because the page runs inside your own application and reads from the VM it shares.
The development-only mount looks like this:
# lib/my_app_web/router.ex
use MyAppWeb, :router
import Phoenix.LiveDashboard.Router
...
if Mix.env() == :dev do
scope "/" do
pipe_through :browser
live_dashboard "/dashboard"
end
endAfter that, mix phx.server and a visit to /dashboard is all the README asks for. The `if Mix.env() == :dev` guard is the default posture: the route does not exist in a release build unless you remove the guard on purpose. Everything the project offers sits behind that single path, which makes it easy to adopt and just as easy to expose by accident.
Ten modules cover the VM, the machine and the database
The dashboard is split into modules, each a tab. Home shows general information about the system. OS Data covers CPU, memory and disk usage. Metrics charts :telemetry events in real time, so you can watch how the application behaves under different conditions. Request logging collects everything that was logged for particular requests.
The next group is BEAM inspection. Applications can be filtered and searched, and each one expands into its processes as a supervision tree. Processes, Ports (responsible for I/O) and Sockets (responsible for tcp/udp) each get a filterable, searchable list for the current node. ETS lists in-memory tables the same way.
The last module, Ecto Stats, shows index, table and general usage for the underlying Ecto Repo storage. It only has something to show when a repo is configured. The contributing section confirms three repo backends are wired into the dev setup: PostgreSQL, MySQL and SQLite.
Node A can show you node B when Distributed Erlang connects them
Monitoring tools usually ask you to install something on every host. LiveDashboard instead leans on Distributed Erlang. If your nodes are connected, you open the dashboard on node A and read information from node B without a second deployment.
That design has a direct consequence. The dashboard can only see nodes that are already connected to the one serving the page. A node outside the cluster, or one that never joined, will not appear. The README states the cross-node feature in two sentences and documents no node selector, no discovery step and no failure behavior, so verify how it behaves with your own cluster topology before depending on it during an incident.
The default Phoenix install already ships it, and the manual route takes three steps
LiveDashboard is built on top of LiveView, and both ship by default as part of Phoenix. The installation instructions are for projects that skipped them. The steps are: add the dependency, configure LiveView, add dashboard access.
The dependency goes in mix.exs, followed by mix deps.get:
def deps do
[
{:phoenix_live_dashboard, "~> 0.7"}
]
endLiveView configuration has two parts. First the endpoint needs a signing salt:
# config/config.exs
config :my_app, MyAppWeb.Endpoint,
live_view: [signing_salt: "SECRET_SALT"]Then the socket declaration goes into the endpoint:
socket "/live", Phoenix.LiveView.SocketThe placeholder SECRET_SALT is exactly that. Replace it with a real value rather than shipping the string from the README. The signing salt and the /live socket belong to LiveView, not to the dashboard, so an app that already runs LiveView pages has done this work before.
Production use is blocked by you, not by the library
The README gives one instruction for production: put authentication in front of the route. The library does not enforce it. A live_dashboard line inside a plain :browser pipeline is reachable by anyone who can reach the app, and the page lists processes, ports, sockets, ETS tables and OS usage.
The first example reuses what mix phx.gen.auth generates for an Admin resource:
# lib/my_app_web/router.ex
use MyAppWeb, :router
import Phoenix.LiveDashboard.Router
...
pipeline :admins_only do
plug :fetch_current_admin
plug :require_authenticated_admin
end
scope "/" do
pipe_through [:browser, :admins_only]
live_dashboard "/dashboard"
endThat snippet assumes you already generated an Admin resource, since fetch_current_admin and require_authenticated_admin are functions from that generated code and not part of LiveDashboard. Without them the pipeline does not compile into anything useful.
The quick HTTP basic auth option reads two environment variables at request time
For teams without a generated Admin resource, the README offers what it calls quick and dirty HTTP Authentication as a starting point:
# lib/my_app_web/router.ex
use MyAppWeb, :router
import Phoenix.LiveDashboard.Router
...
pipeline :admins_only do
plug :admin_basic_auth
end
scope "/" do
pipe_through [:browser, :admins_only]
live_dashboard "/dashboard"
end
defp admin_basic_auth(conn, _opts) do
username = System.fetch_env!("AUTH_USERNAME")
password = System.fetch_env!("AUTH_PASSWORD")
Plug.BasicAuth.basic_auth(conn, username: username, password: password)
endSystem.fetch_env! raises when AUTH_USERNAME or AUTH_PASSWORD is unset, so a missing variable surfaces as an error on the request instead of as an open page. Note that this is a single shared credential pair with no per-user identity, which means no record of which person opened the dashboard. If an audit trail matters, the Admin pipeline above is the better fit.
Behind a proxy or web server, WebSocket upgrades must be allowed, because LiveView depends on them. The README links an archived article on configuring Nginx with Phoenix and WebSockets. If the page loads but never updates, a proxy blocking upgrades is the first thing to check.
The release list stops at v0.2.6 while the dependency line says ~> 0.7
The repository is not archived, and its last push was 2026-09-16. The README's installation snippet asks for ~> 0.7. The single entry in the recent releases list is v0.2.6, dated 2020-06-03. Those two facts do not line up on their own, and nothing in the repository text explains the gap. Treat the version requirement in mix.exs as the number that matters, and check what mix.lock resolves in your project.
Contributors get a dev version of the dashboard through mix setup and mix dev. Ecto testing is switched on with flags: mix dev --postgres, mix dev --mysql or mix dev --sqlite. Run iex -S mix dev followed by the flags for a shell alongside the server. Before a pull request, discard changes to the dist directory, for example with git restore dist, because the built assets live in the repository.
The license is MIT, with copyright credited to Michael Crumm, Chris McCord and José Valim. The top level also holds guides, assets, config, test and a CHANGELOG.md, so the history that the release list lacks may be recorded there. The README does not say what it contains.
Editorial conclusion
Use it on any Phoenix app where you want to inspect processes, ETS tables and telemetry events without extra infrastructure, and keep it behind an auth pipeline outside dev. Skip it if you need stored history or alerting, since nothing in the repository describes either. Before relying on it, confirm which version your mix.lock resolves, because the README asks for ~> 0.7 while the only release listed on GitHub is v0.2.6 from 2020.
Frequently asked questions
How does Phoenix LiveView work with Phoenix LiveDashboard?
LiveDashboard is built on top of LiveView, and both ship by default as part of Phoenix. If you skipped them, you add a signing salt to the endpoint config and declare socket "/live", Phoenix.LiveView.Socket.
What does Phoenix "live dashboard" mean?
It is a real-time performance monitoring and debugging page for Phoenix developers. Its modules cover system info, OS data, telemetry metrics, request logging, applications, processes, ports, sockets, ETS and Ecto stats.
Can Phoenix LiveDashboard be used in production?
Yes, but the README says to put authentication in front of it. It shows two options: a pipeline built on mix phx.gen.auth, and a Plug.BasicAuth setup that reads AUTH_USERNAME and AUTH_PASSWORD.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/phoenixframework-phoenix-live-dashboard)Star history chart for your README
[](https://hysenlabs.com/projects/phoenixframework-phoenix-live-dashboard)Was this useful?