diff --git a/agent/lib/proxmox_agent/collectors/host.ex b/agent/lib/proxmox_agent/collectors/host.ex index 2f7971d..cc5dcc6 100644 --- a/agent/lib/proxmox_agent/collectors/host.ex +++ b/agent/lib/proxmox_agent/collectors/host.ex @@ -46,7 +46,7 @@ defmodule ProxmoxAgent.Collectors.Host do try do {fun.(), nil} rescue - e -> {fallback, {tag, Exception.message(e)}} + e -> {fallback, %{tag: Atom.to_string(tag), message: Exception.message(e)}} end end diff --git a/agent/lib/proxmox_agent/reporter.ex b/agent/lib/proxmox_agent/reporter.ex index 12d4bef..38dbcc6 100644 --- a/agent/lib/proxmox_agent/reporter.ex +++ b/agent/lib/proxmox_agent/reporter.ex @@ -47,7 +47,7 @@ defmodule ProxmoxAgent.Reporter do payload = %{collected_at: DateTime.utc_now() |> DateTime.to_iso8601(), data: sample} :ok = push_metric(socket, "metric:fast", payload) Process.send_after(self(), :collect_fast, socket.assigns.cfg.fast_seconds * 1000) - {:ok, socket} + {:noreply, socket} end @impl Slipstream