Commit graph

4 commits

Author SHA1 Message Date
3367b95b91 chore(agent): log /proc reads, log diagnostics enable, comment trap_exit
Addresses final code review:
- Host collector's /proc reads now go through Diagnostics.log_read/3,
  appearing in commands.log formatted as `$ cat /proc/loadavg`
- configure/1 logs an info line on successful enable so the operator
  has a breadcrumb in the journal
- Writer.init/1 documents the deliberate trap_exit omission
2026-04-22 22:29:26 +02:00
4f82701956 fix(agent): jason-safe error entries + correct handle_info return
Errors produced by Collectors.Host were keyword tuples {:tag, msg}, which
Jason cannot encode — metric push crashed the channel. Convert them to
plain maps with :tag and :message fields.

Reporter.handle_info/2 returned {:ok, socket}, which Slipstream rejects
(GenServer-style {:noreply, socket} is the only valid return for that
callback, unlike handle_connect/handle_join/handle_disconnect).
2026-04-21 22:15:32 +02:00
3ae38f95a9 feat(agent): slipstream reporter — join, push, auto-reconnect 2026-04-21 22:08:57 +02:00
ce828084c8 feat(agent): host collector for /proc loadavg, meminfo, uptime 2026-04-21 22:08:04 +02:00