Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add ecto to prometheus metrics #1230

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading