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>
This commit is contained in:
William Valentin
2026-03-14 00:26:42 -07:00
parent 1927ec6622
commit 3434db3c59
29 changed files with 6228 additions and 231 deletions
+37
View File
@@ -0,0 +1,37 @@
FROM golang:1.25 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/ingest-gateway ./cmd/ingest-gateway
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/query-api ./cmd/query-api
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/web-ui ./cmd/web-ui
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/event-processor ./cmd/event-processor
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/openclaw-monitor ./cmd/openclaw-monitor
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
ca-certificates \
libvirt-clients \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /usr/local/bin/* /usr/local/bin/
ENV AGENTMON_ADDR=:8080
ENV AGENTMON_QUERY_ADDR=:8081
ENV AGENTMON_UI_ADDR=:8082
ENV DATABASE_URL=postgres://postgres:pass@postgres:5432/agentmon?sslmode=disable
ENV NATS_URL=nats://nats:4222
ENV NATS_TOPIC=agentmon.events.v1
ENV OPENCLAW_REGISTRY=/openclaw-registry/openclaw-instances.json
ENV POLL_INTERVAL=30s
CMD ["ingest-gateway"]