---
name: agentmon
description: "Emit OpenClaw telemetry events to the agentmon monitoring pipeline"
metadata:
  openclaw:
    events:
      - "command:new"
      - "command:stop"
      - "command:reset"
      - "message:received"
      - "message:sent"
      - "tool_result_persist"
      - "session:compact:before"
      - "session:compact:after"
    export: "default"
    requires:
      env:
        - "AGENTMON_INGEST_URL"
---

# Agentmon Telemetry Hook

Captures OpenClaw agent activity and emits it as `agentmon.event` envelopes to
the agentmon ingest gateway.

## Configuration

Set the ingest gateway URL before enabling the hook:

```bash
export AGENTMON_INGEST_URL=http://192.168.122.1:8080
```

You can optionally override the VM identifier:

```bash
export AGENTMON_VM_NAME=zap
```
