DEV Community

Cover image for OpenClaw Finally Understands OpenTelemetry APM
AIdevops2088
AIdevops2088

Posted on • Originally published at databuff.ai

OpenClaw Finally Understands OpenTelemetry APM

Meet DataBuff: AI-native OpenTelemetry APM

DataBuff (github.com/databufflabs/databuff) is an open-source AI-native OpenTelemetry APM β€” deploy with one Docker command.

In one line: ingest telemetry via OTel standards first, then let AI read traces, metrics, topology, and alerts β€” not a chat box bolted onto dashboards.

πŸ“Š OpenTelemetry APM foundation

  • Native OTLP β€” traces, service metrics, topology, alerting
  • Rich data model derived from traces (services, APIs, flows, component metrics)
  • Three components: Ingest β†’ Doris β†’ Web, low ops overhead

πŸ€– AI-native capabilities

  • Multi-agent collaboration: AI brain + metrics / inspection experts
  • Smart query: natural language over metrics, traces, topology, alerts
  • Health inspection: threshold-free anomaly screening with evidence chains

- **Capability** β€” What it does - **In-platform AI chat** β€” Ask in the Web UI: β€œWhy is this trace slow?” or β€œInspect order-service” - **MCP for external agents (this article)** β€” Cursor, Claude Code, OpenClaw call the same APM tools - **Official Skills** β€” Constrain query semantics and inspection flows β€” agents don't invent metrics

DataBuff three-component architecture

Screenshot: Ingest β†’ Doris β†’ Platform β€” one command to run

Global service topology

Screenshot: global topology β€” AI and MCP tools read the same live data

Multi-agent troubleshooting

Screenshot: in-platform AI brain dispatches experts β€” external agents use the same backend via MCP

This article: DataBuff exposes platform capabilities via MCP + Skills to OpenClaw (and Feishu / DingTalk channels). Below: 5-minute setup for one-sentence whole-cluster inspection.

am alert: five tabs, or one sentence?

Alert fires: β€œCheckout is slow β€” anything wrong cluster-wide?”

Old way: APM dashboard β†’ traces β†’ topology β†’ alert list β†’ hand-written summary. 20–30 minutes per round.

Searching traces across systems

Screenshot: multi-tab evidence stitching β€” agents can do it in one prompt

With OpenClaw: send one message in CLI, WebChat, or Feishu / DingTalk. The agent calls DataBuff MCP against real OTel data in Doris, follows official Skills, and returns an evidence-backed report β€” not hallucinated numbers.

❌ Without MCP

The model invents β€œerror rate 2.3%” β€” pure hallucination, not safe for incident channels.

βœ… MCP + Skills

inspectService first β†’ traces / topology for anomalies β†’ Chinese or English report with evidence.

OpenClaw listing services via MCP

Screenshot: OpenClaw activity β€” Databuff-apm GetCurrentTimeRange / QueryServicesAll

MCP is the hands; Skills are the brain

DataBuff ships an agent integration pack (integrations/agent/). You need both layers for a real ops agent:

MCP = 11 APM tools (services, traces, metrics, alerts, inspection, charts)

Skills = query semantics + inspection workflow (when to inspect, time ranges, evidence chaining)

- **Layer** β€” Contents Β· Examples - **MCP tools** β€” Live data access Β· queryServicesAll, inspectService, queryTraceDetail - **Skills** β€” Behavior rules Β· skill.data.metrics, skill.inspection.health

External agents hit the same Spring beans as in-platform AI experts β€” not pasted APIs, real OTel data in Doris.

OpenClaw Skills page

Screenshot: skill.data.metrics enabled on OpenClaw Skills page

-minute setup: MCP + Skills end-to-end

Prerequisite: DataBuff deployed; OpenClaw can reach the Web port.

Step 0 Β· Get the official integration pack β€” do not download Skills/MCP from third-party marketplaces:

git clone https://github.com/databufflabs/databuff.git cd databuff/integrations/agent/

Or browse integrations/agent/ on GitHub. Contains skills/ (2 official Skills) and mcp/ (client config examples).

Step 1 Β· Deploy DataBuff (if not installed):

curl -fsSL https://databuff.ai/databuff/ai-apm-install.sh | bash

DataBuff install success

Screenshot: one-command install, note Web URL and port

Step 2 Β· Configure MCP β€” copy mcp/openclaw-amc-config.example.json, set mcp.url to your DataBuff host:

{ "name": "databuff-apm", "description": "DataBuff APM MCP β€” metrics, traces, topology, alerts, inspection", "mcp": { "transport": "streamable-http", "url": "http://YOUR\_DATABUFF\_HOST:PORT/mcp" }, "skills": [ "skill.data.metrics", "skill.inspection.health" ] }

Replace YOUR_DATABUFF_HOST:PORT. MVP needs no Authorization header. MCP endpoint: /mcp (Streamable HTTP).

Step 3 Β· Install Skills β€” copy integrations/agent/skills/ to your client Skills path:

- **Client** β€” Skills path - **OpenClaw** β€” OpenClaw workspace skills/ (Control UI β†’ Skills should list both) - **Cursor** β€” ~/.cursor/skills/ or project .cursor/skills/ - **Claude Code** β€” ~/.claude/skills/

# From databuff repo root (OpenClaw example β€” adjust target path) cp -r integrations/agent/skills/skill.data.metrics /skills/ cp -r integrations/agent/skills/skill.inspection.health /skills/

Each Skill is a directory with SKILL.md. Synced with deploy/common/skills/ β€” re-copy after updates.

- **skillId** β€” Purpose - **skill.data.metrics** β€” APM metrics, trace, alert query semantics (time ranges, which tool) - **skill.inspection.health** β€” Health inspection flow (inspect first, gather evidence, conclude)

Step 4 Β· Verify β€” after restarting OpenClaw Gateway:

  • Control UI β†’ Skills: skill.data.metrics, skill.inspection.health
  • Control UI β†’ Instances: Gateway online
  • New chat β†’ Activity: Databuff-apm tools (e.g. QueryServicesAll)

OpenClaw connected instances

Screenshot: Gateway and Control UI connected (127.0.0.1:18789)

Security: MVP has no separate MCP token β€” use on private network / VPN; add a gateway before public exposure.

Three prompts to validate the full path

β‘ 

β€œList services from the last hour” β€” Skill parses time β†’ getCurrentTimeRange β†’ queryServicesAll

List services MCP calls

Screenshot: 7 services in the last hour (service-a / service-b / MySQL, etc.)

β‘‘

β€œInspect service-a health” β€” inspectService β†’ queryMetricData / queryServiceAlarms

Inspect service-a tool chain

Screenshot: Activity 3 tools β€” InspectService / QueryMetricData / QueryServiceAlarms

β‘’

β€œChart service-a error rate for the past hour” β€” queryMetricData + drawTrendCharts

Error rate trend chart

Screenshot: 0% error rate trend β€” real data, not invented

Pass criteria: tool panel shows queryServicesAll / inspectService with JSON responses β€” not plain-text guesses.

vs in-platform AI and vs Cursor?

- **Scenario** β€” Path Β· Best for - **DataBuff Web UI** β€” AgentScope JAVA_BEAN + multi-expert Β· Day-to-day console troubleshooting - **OpenClaw / Feishu / DingTalk** β€” MCP + Skills Β· One-liner queries in alert channels - **Cursor / Claude Code** β€” Same MCP + Skills Β· Developers querying APM from the IDE

All three paths are independent. OpenClaw brings APM into your existing agent runtime β€” no extra browser tab for AI incidents.

Full config and FAQ: docs/manual/agent-integration.md and integrations/agent/README.md in the repo.

From guessing metrics to calling real APM

DataBuff opens APM to any agent runtime; OpenClaw / Feishu / DingTalk are just entry points β€” MCP for real data, Skills for semantics is the core.

⭐ Wire up DataBuff agent integration in 5 minutes

github.com/databufflabs/databuff/integrations/agent

Try: β€œInspect service-a, then check if anything is wrong cluster-wide.”

View on GitHub β†’

Top comments (0)