mix timeless_metrics_dashboard.install
(timeless_metrics_dashboard v0.4.6)
Copy Markdown
View Source
Installs TimelessMetricsDashboard into your application.
Adds TimelessMetricsDashboard to your supervision tree (starts TimelessMetrics + telemetry reporter), configures your Phoenix router with the metrics dashboard page, and updates the formatter.
Usage
mix igniter.install timeless_metrics_dashboardWhat it does
- Adds
{TimelessMetricsDashboard, data_dir: "priv/timeless_metrics"}to your application's supervision tree - Adds
import TimelessMetricsDashboard.Routerto your Phoenix router - Adds
timeless_metrics_dashboard "/dashboard"to your router's browser scope - Adds
:timeless_metrics_dashboardto your.formatter.exsimport_deps - Reminds you to remove the default LiveDashboard route (avoids live_session conflict)