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_dashboard

What it does

  1. Adds {TimelessMetricsDashboard, data_dir: "priv/timeless_metrics"} to your application's supervision tree
  2. Adds import TimelessMetricsDashboard.Router to your Phoenix router
  3. Adds timeless_metrics_dashboard "/dashboard" to your router's browser scope
  4. Adds :timeless_metrics_dashboard to your .formatter.exs import_deps
  5. Reminds you to remove the default LiveDashboard route (avoids live_session conflict)