PromEx.Plugins.Ecto (PromEx v0.1.7-alpha) View Source

This plugin captures metrics emitted by Ecto.

This plugin supports the following options:

  • repo: This is a REQUIRED option and is the full module name of your Ecto Repo (e.g MyApp.Repo).

  • otp_app: This is a REQUIRED option and is the name of you application in snake case (e.g. :my_cool_app).

This plugin exposes the following metric groups:

  • :

To use plugin in your application, add the following to your PromEx module plugins/0 function:

def plugins do
  [
    ...

    {PromEx.Plugins.Ecto, otp_app: :web_app, repo: WebApp.Repo}
  ]
end