From 40f135b01eac6cf0e53c7e3073e1e46593f386b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20Caba=C3=A7o?= Date: Thu, 21 Nov 2024 14:37:30 +0000 Subject: [PATCH] fix: Add ecto to prometheus metrics (#1230) --- lib/realtime/monitoring/prom_ex.ex | 8 ++------ mix.exs | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/realtime/monitoring/prom_ex.ex b/lib/realtime/monitoring/prom_ex.ex index 599467300..cc814df73 100644 --- a/lib/realtime/monitoring/prom_ex.ex +++ b/lib/realtime/monitoring/prom_ex.ex @@ -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 diff --git a/mix.exs b/mix.exs index 959d38a65..aefb94e5d 100644 --- a/mix.exs +++ b/mix.exs @@ -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,