Commit Graph

17 Commits

Author SHA1 Message Date
William Valentin 41b7165800 fix(store): backfill spans in run detail 2026-04-21 13:07:09 -07:00
William Valentin 5ff4794d98 feat(openclaw-monitor): add MinIO telemetry 2026-03-26 11:22:45 -07:00
William Valentin 6605780b58 feat(ingest): batch event writes and harden transport 2026-03-26 11:22:42 -07:00
William Valentin 43877a5448 feat(query-api): add richer stats and retention 2026-03-26 11:22:34 -07:00
William Valentin 687a7aa79d Add live agent views and improve Codex monitoring 2026-03-20 13:59:51 -07:00
William Valentin f8ddea3698 feat: add agentmon services section to infrastructure page
Label all agentmon docker-compose services with agentmon.monitor=true
and agentmon.group=agentmon so the swarm-monitor picks them up.
Adds Group field to ServiceSnapshot, probes /healthz for api/web roles,
and renders a separate "Agentmon" section below Swarm Services on the
Infrastructure page with new api and worker card renderers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 13:41:26 -07:00
William Valentin d2d044a3d8 fix: use Docker socket HTTP API in swarm collector, no CLI dependency
Replace exec.CommandContext calls (docker ps, docker inspect, nc -z) with
direct HTTP calls over the Unix socket using Go's net/http + custom transport.
Also removes netcat-openbsd from Dockerfile since nc is no longer used.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 10:36:32 -07:00
William Valentin 9c2f048b92 feat: add swarm collector with docker inspect + HTTP probes 2026-03-18 10:10:34 -07:00
William Valentin 083e522bb7 feat: add swarm monitor types 2026-03-18 10:08:54 -07:00
William Valentin 063e41616a fix: active sessions query, chart update performance
- Active sessions query now finds truly active sessions (started
  anytime, no session.end ever) instead of only today's sessions
- Use uPlot setData() for live WS updates instead of destroying
  and recreating the chart on every event
- Destroy chart only on window change so it recreates with new scale

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:25:06 -07:00
William Valentin 37f9b34197 fix: use 'unknown' for null framework, run gofmt 2026-03-14 11:01:11 -07:00
William Valentin 24a7fc2782 feat: add summary and timeseries stats queries 2026-03-14 00:47:08 -07:00
William Valentin 3434db3c59 feat: complete agent monitoring - hook, UI, and backend filter
- Add event_type and framework filters to events query endpoint
- Add /agents SPA route to web-ui server
- Add Agents nav link and route in frontend
- Add agents page CSS (timeline, VM pills, stats panel)
- Build VM status strip, activity timeline, and real-time stats
- Add agentmon hook for OpenClaw (HOOK.md + handler.ts)
- Add docker-compose, Dockerfile, and supporting infra files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 00:26:42 -07:00
William Valentin 9da01ef924 feat: add session and run detail queries
GetSessionWithRuns returns session metadata and all runs.
GetRunWithSpans returns run metadata and all spans with payload.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 01:57:09 -08:00
William Valentin 1fb9396877 feat: add sessions list query
Supports filtering by time range, framework, and host.
Returns paginated results with cursor-based pagination.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 01:56:34 -08:00
William Valentin 0e2734be23 feat: add event validation
Validates required envelope fields: schema, event.id, event.type,
event.ts, and event.source (framework, client_id, host).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 01:55:24 -08:00
William Valentin 256b841cbf feat: scaffold agentmon services and k8s deploy
Adds Go microservices (ingest-gateway, event-processor, query-api, web-ui), NATS+Postgres wiring, initial schema/init job, ingress manifests for LAN+tailnet, and a multi-arch image build script.
2026-01-17 01:06:57 -08:00