observability-llm-obs

Monitor LLM performance, token costs, and response quality in Elastic.

546|44|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/elastic/agent-skills --skill observability-llm-obs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-llm-obs
Source: https://github.com/elastic/agent-skills/tree/main/skills/observability/llm-obs
Command: npx skills add https://github.com/elastic/agent-skills --skill observability-llm-obs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you monitor the performance, cost, and quality of your Large Language Models (LLMs) and agentic applications by analyzing data ingested into Elastic.

Core Features & Use Cases

  • Performance Monitoring: Track latency, throughput, and error rates for LLM operations.
  • Cost & Token Tracking: Analyze token usage and estimate costs associated with LLM calls.
  • Response Quality: Identify issues related to response quality, content filtering, and errors.
  • Workflow Orchestration: Analyze call chaining and agentic workflows to understand execution flow and identify bottlenecks.
  • Use Case: You can use this Skill to answer questions like "What is the average token usage for our OpenAI calls yesterday?" or "Are there any LLM operations experiencing high latency or error rates?"

Quick Start

Use the observability-llm-obs skill to find the total input tokens used by the 'gpt-4' model in the last 24 hours.

Frequently Asked Questions about observability-llm-obs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor LLM token usage and cost in Elasticsearch?

You can monitor LLM token usage and cost by analyzing ingested trace and metrics data streams to track token utilization and estimate LLM call expenses. This Skill leverages ES|QL and OpenTelemetry GenAI semantic conventions to query and calculate costs.

How do I track LLM performance and latency for my AI applications?

Track LLM performance and latency by analyzing data ingested into Elastic to measure throughput, error rates, and response delays for LLM operations. It uses Elasticsearch APIs and Kibana APIs to query trace data streams for detailed performance insights.

Can I analyze agentic workflow orchestration and call chaining with Elastic?

Yes, you can analyze agentic workflow orchestration and call chaining with Elastic to understand execution flow and identify bottlenecks. This Skill queries ingested trace data to map out complex LLM operations and workflow sequences.

What is the best way to identify response quality issues in LLM operations?

The best way to identify response quality issues in LLM operations is to analyze ingested metrics data for content filtering events and errors. This Skill uses ES|QL queries to pinpoint specific LLM calls experiencing degraded response quality.

Does this LLM observability approach require OpenTelemetry GenAI semantic conventions?

Yes, this LLM observability approach relies on OpenTelemetry GenAI semantic conventions and integration-specific fields to query trace and metrics data streams. This standardization allows accurate extraction of performance and cost data.