# `PromEx.Plugins.Broadway`
[🔗](https://github.com/akoutmos/prom_ex/blob/master/lib/prom_ex/plugins/broadway.ex#L2)

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
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
