View Source Poolex.PromEx (poolex v0.9.0-rc.1)

This is a plugin for your application to collect metrics with PromEx.

To use this plugin, you need to add :prom_ex to your dependencies in mix.exs:

defp deps do
  [
    {:prom_ex, "~> 1.0"}
  ]
end

Then you need to add this plugin to plugins list in your PromEx configuration:

defmodule MyCoolApp.PromEx do
  use PromEx, otp_app: :my_cool_app

  @impl PromEx
  def plugins do
    [
      Poolex.PromEx
    ]
  end
end

Additional information about PromEx installation and configuration can be found in the PromEx documentation: https://hexdocs.pm/prom_ex/readme.html#installation.