• COST
  • SPEED
  • TRENDS
  • HUMAN

How to monitor LLM token usage with your agent

Connect Datadog AI to your agent. Once connected, you can ask your agent to pull specific telemetry data from your Datadog account.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I track LLM token usage and latency with my AI?

Your agent uses the Datadog AI connector to query numeric telemetry. You get direct access to token counts and model latency metrics through your chat interface. This breakdown shows you how your agent handles these requests.

The results you get.

Where your data lands.

Your agent pulls specific metrics from Datadog and brings them into your conversation.

COST

Token usage tracking

Your agent pulls token counts from your telemetry. You'll see exactly how much each model call is costing you.

SPEED

Latency monitoring

Your agent retrieves response time data. You can identify which model calls are running slow.

TRENDS

Historical analysis

Your agent queries past metrics. You get a view of how your model performance has changed over time.

HUMAN

Manual decisions

Your agent provides the numbers. You decide if you need to change your prompts or switch models.

The workflow

What your agent does when the data arrives.

Your agent acts as the interface between your chat and your Datadog metrics.

  1. Fetch metrics

    Your agent looks up the specific numeric telemetry you requested in Datadog.

    query_metrics
  2. Analyze usage

    Your agent processes the token counts to give you a clear total.

    query_metrics
  3. Check latency

    Your agent pulls response time data to find delays in your model calls.

    query_metrics
  4. Report data

    Your agent delivers the requested numbers directly into your chat window.

    query_metrics

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Datadog tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin monitoring your models.

Starting points

These are opening lines. Swap out the metric names or time ranges to match your specific Datadog setup.

Datadog Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_bWdhwHEHDioKsLvhV1Lvv7ec4t2gm8k5cIgCZeWx/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Datadog capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "datadog-ai-llm-observability-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_bWdhwHEHDioKsLvhV1Lvv7ec4t2gm8k5cIgCZeWx/mcp"
    }
  }
}
Copy into chat04
  • 01

    What was the total token usage for my LLM service over the last 24 hours?

  • 02

    Show me the average latency for my production model from this morning.

  • 03

    Are there any spikes in token consumption for your agent in the last hour?

  • 04

    Compare the latency of my model calls between yesterday and today.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Datadog AI once, then ask.

Connect your account with one click. Your credentials stay encrypted on our side, and you can start querying metrics immediately.

Connect Datadog AI to your agent

FAQ

How this task behaves.

  • 01

    Can your agent change my Datadog alerts?

    No. Your agent can only read numeric telemetry. It cannot modify your Datadog settings or alerts.

  • 02

    Can your agent delete my metrics?

    No. Your agent is read-only. It has no way to delete or change your data.

  • 03

    Can I monitor non-LLM metrics?

    Yes. If the data is a numeric metric in Datadog, your agent can query it.

  • 04

    Does your agent create Datadog dashboards?

    No. Your agent provides data in your chat, but it cannot build or edit dashboards in Datadog.

  • 05

    How does your agent find the right data?

    Your agent uses the metric names you provide in your prompt to find the right telemetry.

  • More questions about Datadog AI? See everything the Datadog AI Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Datadog to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Datadog plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Datadog to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.