Router macro for one-line LiveDashboard setup with all observability pages.
Usage
defmodule MyAppWeb.Router do
use Phoenix.Router
import TimelessPhoenix.Router
pipeline :browser do
plug :fetch_session
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/" do
pipe_through :browser
timeless_phoenix_dashboard "/dashboard"
end
endOptions
:name— TimelessPhoenix instance name (default::default):metrics— metrics module passed to LiveDashboard (default:TimelessPhoenix.DefaultMetrics):download_path— path for backup downloads (default:"/timeless/downloads"):live_dashboard— extra opts merged intolive_dashboardcall
Summary
Functions
Mounts the TimelessMetricsDashboard download plug and LiveDashboard with all pages.