View Source PromEx.Plugins.Broadway (PromEx v1.10.0)

This plugin captures metrics emitted by Broadway.

This plugin exposes the following metric groups:

  • :broadway_init_event_metrics
  • :broadway_message_event_metrics
  • :broadway_batch_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.Broadway
    ]
  end

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