Skip to content

Commit

Permalink
fix: Add ecto to prometheus metrics (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecabaco authored Nov 21, 2024
1 parent 274166a commit 40f135b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions lib/realtime/monitoring/prom_ex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,12 @@ defmodule Realtime.PromEx do
poll_rate = Application.get_env(:realtime, :prom_poll_rate)

[
# PromEx built in plugins
# Plugins.Application,
{Plugins.Beam, poll_rate: poll_rate, metric_prefix: [:beam]},
{Phoenix, router: RealtimeWeb.Router, poll_rate: poll_rate, metric_prefix: [:phoenix]},
# {Plugins.Ecto, poll_rate: poll_rate, metric_prefix: [:ecto]},
# Plugins.Oban,
# Plugins.PhoenixLiveView
{OsMon, poll_rate: poll_rate},
{Tenants, poll_rate: poll_rate},
{Tenant, poll_rate: poll_rate}
{Tenant, poll_rate: poll_rate},
{PromEx.Plugins.Ecto, otp_app: :realtime, poll_rate: poll_rate, metric_prefix: [:ecto]}
]
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.33.53",
version: "2.33.54",
elixir: "~> 1.16.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 40f135b

Please sign in to comment.