PrometheusEcto
On app/supervisor start:
Ecto.PrometheusCollector.setup()
In your Repo config:
...
loggers: [Ecto.LogEntry, Ecto.PrometheusCollector]
....
Installation
Available in Hex, the package can be installed as:
- Add
prometheus_ectoto your list of dependencies inmix.exs:
```elixir
def deps do
[{:prometheus_ecto, "~> 0.1.0"}]
end
```
- Ensure
prometheus_ectois started before your application:
```elixir
def application do
[applications: [:prometheus_ecto]]
end
```