Ot Aiops
支持多协议工业设备数据采集与智能诊断,具备高风险写入防护机制。
将 OpenClaw 模型调用日志导出至 Latitude 平台,实现 LLM 使用情况可观测性分析。
openclaw skills install @latitude/latitude-observability命令、参数、文件名以原文为准
[Latitude](https://latitude.so) 是一个开源的 LLM 可观测性与评估平台。它能够接收 OpenTelemetry 跟踪数据,使 OpenClaw 的活动以跨度(spans)的形式呈现,您可以在其中进行查看、搜索和评估,并在跟踪的每一层级上聚合 token 使用量、成本和延迟信息。
OpenClaw 已通过内置的 diagnostics-otel 插件导出 OTLP/HTTP protobuf 格式的数据。本技能将该导出器配置为向 Latitude 发送追踪数据,无需额外安装代码。
当您希望 OpenClaw 的模型调用、运行、工具调用和消息跨度能够进入 Latitude,或有人询问如何将 OpenClaw 的遥测数据接入 Latitude 时,可使用此功能。
export LATITUDE_API_KEY=<your-api-key>
export LATITUDE_PROJECT=<your-project-slug>启用 diagnostics-otel 插件,并将 diagnostics.otel 指向 Latitude 的数据摄入端点,使用两个头部进行身份验证。将以下内容添加至您的 OpenClaw 配置文件(~/.openclaw/openclaw.json):
{
plugins: {
allow: ["diagnostics-otel"],
entries: {
"diagnostics-otel": { enabled: true },
},
},
diagnostics: {
enabled: true,
otel: {
enabled: true,
endpoint: "https://ingest.latitude.so",
protocol: "http/protobuf",
serviceName: "openclaw-gateway",
headers: {
Authorization: "Bearer ${LATITUDE_API_KEY}",
"X-Latitude-Project": "${LATITUDE_PROJECT}",
},
traces: true,
metrics: false,
logs: false,
},
},
}对于打包安装版本,请先安装插件:
openclaw plugins install clawhub:@openclaw/diagnostics-otelendpoint 后追加 /v1/traces,因此请将 endpoint 设置为 https://ingest.latitude.so(不包含路径)。若自托管 Latitude,请指向您自己的数据摄入主机。protocol 必须设置为 http/protobuf。目前 OpenClaw 忽略 grpc,而 Latitude 仅支持接收 OTLP/HTTP protobuf 格式。metrics 和 logs。如需处理这些信号,请将其路由至独立的指标或日志后端。diagnostics.otel.captureContent.*。运行一次调用模型和工具的 OpenClaw 代理回合,然后打开 [Latitude 控制台](https://console.latitude.so/login)。您应能看到一条包含嵌套跨度的跟踪记录,涵盖运行、模型调用和工具调用,且每条跟踪均聚合了 token 使用量、成本和延迟信息。
已收录 1 个 Skill