Hi Team,
Can someone let me know, how to use prometheus_ecto .
I did followed the sets provided in the documentation.
In Application startup
RepoInstrumenter.setup()
:ok =
:telemetry.attach(
“prometheus-ecto”,
[:my_app, :repo, :query],
&MyApp.RepoInstrumenter.handle_event/4,
%{})
Plug Module
defmodule MyApp.RepoInstrumenter do
@moduledoc “”"
Pipeline Instrumenter for Plugs
“”"
use Prometheus.EctoInstrumenter
end
After firing query, But still, i don’t see any event generating.