Skip to content

Commit

Permalink
Include builtin telemetry_poller metrics in periodic measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Dec 14, 2024
1 parent 490838a commit d20d345
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/sync-service/lib/electric/telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ defmodule Electric.Telemetry do
last_value("vm.total_run_queue_lengths.total"),
last_value("vm.total_run_queue_lengths.cpu"),
last_value("vm.total_run_queue_lengths.io"),
last_value("vm.system_counts.process_count"),
last_value("vm.system_counts.atom_count"),
last_value("vm.system_counts.port_count"),
last_value("electric.postgres.replication.wal_size", unit: :byte)
# distribution("plug.router_dispatch.stop.duration",
# tags: [:route],
Expand All @@ -204,7 +207,9 @@ defmodule Electric.Telemetry do
stack_id = Keyword.fetch!(opts, :stack_id)

[
# A module, function and arguments to be invoked periodically.
:memory,
:total_run_queue_lengths,
:system_counts,
{__MODULE__, :uptime_event, []},
{__MODULE__, :count_shapes, [stack_id]},
{__MODULE__, :get_total_disk_usage, [opts]},
Expand Down

0 comments on commit d20d345

Please sign in to comment.