Integrate AI Agent Observability with OBI

Updated at:

OpenTelemetry non-intrusive monitoring (OBI) enables observability for AI Agent applications without SDK integration. OBI parses HTTP traffic at the network layer by using eBPF and automatically generates traces that comply with OpenTelemetry GenAI semantic conventions. You can monitor LLM, MCP, Rerank, Tool, Embedding, and other AI capabilities of your AI Agent applications with zero code changes.

Supported AI capabilities

OBI automatically identifies the following types of AI calls and generates traces without SDK integration. The following table describes the supported AI capability types and the mainstream vendors or protocols covered.

Capability

Description

Supported vendors and protocols

LLM Chat/Completion

Chat, Completion, Responses, and other generative calls

OpenAI, Anthropic (Claude), Google Gemini (Gemini API + Vertex AI), AWS Bedrock, Qwen (DashScope), and OpenAI-compatible interfaces

Embedding

Text embedding calls

OpenAI, Qwen (DashScope), Voyage AI, Cohere, Jina AI

Rerank

Search result reranking

Cohere, Jina, Voyage, Qwen (DashScope)

Retrieval/RAG

Vector database retrieval calls

Pinecone, Qdrant, Milvus, Zilliz, Chroma, Weaviate

MCP

Model Context Protocol (JSON-RPC 2.0), including tools/call, resources, and prompts methods

General MCP servers

Tool calls

Function/tool calls initiated by LLMs, generating independent execute_tool traces

OpenAI, Anthropic, Gemini, Qwen

Note

LLM capabilities support streaming (SSE) response parsing. Qwen and other OpenAI-compatible services reuse OpenAI protocol parsing. All capabilities are collected non-intrusively on the client side. For the latest supported scope, see the upstream open-source project opentelemetry-ebpf-instrumentation.

Prerequisites

  • You have activated Cloud Monitor 2.0 and created the target workspace. Log on to the Cloud Monitor 2.0 console to confirm the service status.

  • You have an AI Agent application running on a Container Service for Kubernetes (ACK) cluster.

Integrate ACK containers for AI Agent Observability

Use the CMS 2.0 Integration Center

Use the Cloud Monitor 2.0 Integration Center to select a target ACK cluster and applications to complete OBI monitoring access.

  1. Log on to the Cloud Monitor 2.0 console and select the target workspace.

  2. In the left-side navigation pane, click Integration Center.

  3. In the APM & Tracing section, find and click the OpenTelemetry Non-Intrusive Monitoring card.

    The access panel appears on the right side of the page, displaying the access steps.

  4. In the Select Container Service For Kubernetes(ACK) step, select the target region and ACK cluster.

  5. In the Addon Config step, select the applications that you want to monitor and specify application names. You can select multiple applications at a time.

  6. Click Determine and wait for the access configuration to complete. After the configuration is complete, go to the Integration Status Check step to view the access results.

  7. After the integration is complete, in the left-side navigation pane, click AI Agent Observability and select the corresponding application to view its observable data.

Manually integrate ACK clusters

  1. Log on to the ACK console, click Clusters in the left-side navigation pane, and click the name of the target cluster.

  2. In the left-side navigation pane, click Components and Add-ons, find the arms-obi add-on, and install it. If you need to report data to a non-default workspace, specify the corresponding workspace name in the workspace field during installation.

    Note

    To configure the runtime behavior of the OBI add-on (such as custom LLM gateway support or custom Attributes), see the OBI add-on configuration documentation. After modifying the configuration, restart the arms-obi daemon process under obi-system. Modifications made during installation do not require a restart.

  3. Configure monitoring targets.

    Note

    To monitor applications that use the gRPC protocol, restart the application to enable gRPC protocol monitoring.

    • On the Configurations > ConfigMaps page of the ACK cluster, switch the namespace to obi-system, find arms-obi-discovery-default, and click Edit.

    • Add the deployment name, namespace, and display name of the applications that you want to monitor. The following shows a configuration example:

      discovery:
        instrument:
          - k8s_deployment_name: "server"
            k8s_namespace: "arms-default"
            name: "server-test-obi"

Integrate ACS clusters

For more information, see Integrate ACS applications with OBI.

References