Skip to content

Create Agent Monitoring Application


  1. Go to Agent Monitoring > Application List.
  2. Click "Create Application".
  3. Select the Agent Monitoring Application tab.

Integration Type

Currently supports the OpenClaw integration framework.

Access Configuration

Install Plugin

Copy and execute the following command in the terminal:

cd ~/.openclaw/extensions
git clone https://github.com/GuanceDemo/openclaw-otel-plugin.git
cd openclaw-otel-plugin
npm install
npm run build

Modify Configuration File

Merge the following configuration into the local ~/.openclaw/openclaw.json file:

{
  "plugins": {
    "allow": [
      "openclaw-otel-plugin"
    ],
    "load": {
      "paths": [
        "/Users/yourname/.openclaw/extensions/openclaw-otel-plugin"
      ]
    },
    "entries": {
      "openclaw-otel-plugin": {
        "enabled": true,
        "config": {
          "endpoint": "https://llm-openway.guance.com",
          "tracePath": "v1/write/otel-llm",
          "metricsPath": "v1/write/otel-metrics",
          "logsEnabled": false,
          "logsPath": "v1/write/otel-logs",
          "headers": {
            "X-Token": "agent_f2a712a939*******896",
            "to_headless": "true"
          },
          "sampleRate": 1,
          "serviceName": "openclaw-otel-plugin",
          "flushIntervalMs": 15000,
          "rootSpanTtlMs": 600000,
          "resourceAttributes": {
            "agent_provider": "openclaw",
            "env": "prod"
          }
        }
      }
    }
  }
}
Note

The highlighted fields need to be modified separately according to the form on the right. Other fields can remain as default.

Restart and Verify

After modifying the configuration, execute:

npm run build
npm test
openclaw gateway restart
tail -n 50 ~/.openclaw/logs/gateway.log

After sending an OpenClaw test message, query by trace_id or service.name.

Fill in Variables in the Code

Fill in the following information on the right side of the page:

Field Description
Application Name Custom application name
Application ID Public key, only supports English letters, numbers, and underscores. Used to associate the current application in traces, logs, and metrics.
Plugin Path Fill in the local OpenClaw plugin installation directory
Service Address Fill in the Dataway gateway address
Client Token Automatically generated after application creation, used to send data from user devices
Diagnostic Logs Whether to simultaneously report OpenClaw diagnostic logs
What is Client Token?

After creating the application, the system will automatically generate a Client Token for you. This token is used to send data from user devices.

For more details, please refer to Client Token Management.

After confirming the information is correct, click Create to complete the Agent monitoring application access.

Feedback

Is this page helpful? ×