TimelessMetricsDashboard.Router (timeless_metrics_dashboard v0.4.6)

Copy Markdown View Source

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
end

Options

  • :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 into live_dashboard call

Summary

Functions

Mounts the TimelessMetricsDashboard download plug and LiveDashboard with metrics pages.

Functions

timeless_metrics_dashboard(path, opts \\ [])

(macro)

Mounts the TimelessMetricsDashboard download plug and LiveDashboard with metrics pages.