Router macro for one-line LiveDashboard setup with TimelessMetrics pages.
Usage
defmodule MyAppWeb.Router do
use Phoenix.Router
import TimelessMetricsDashboard.Router
scope "/" do
pipe_through :browser
timeless_metrics_dashboard "/dashboard"
end
endOptions
:name— TimelessMetrics store name (default::timeless_metrics):metrics— metrics module passed to LiveDashboard (default:TimelessMetricsDashboard.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 metrics pages.