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:
+37
@@ -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"]
|
||||
Reference in New Issue
Block a user