PromEx.Plugins.PhoenixLiveView (PromEx v1.1.1) View Source

This plugin captures metrics emitted by PhoenixLiveView. Specifically, it captures events related to the mount, handle_event, and handle_params callbacks for live views and live components.

This plugin supports the following options:

  • This plugin does not currently support any additional options.

This plugin exposes the following metric groups:

  • :phoenix_live_view_event_metrics
  • :phoenix_live_view_component_event_metrics

To use plugin in your application, add the following to your PromEx module:

defmodule WebApp.PromEx do
  use PromEx, otp_app: :web_app

  @impl true
  def plugins do
    [
      ...
      PromEx.Plugins.PhoenixLiveView
    ]
  end

  @impl true
  def dashboards do
    [
      ...
      {:prom_ex, "phoenix_live_view.json"}
    ]
  end
end