Agent monitoringAI agent observabilityLLM monitoring

AI Agent Monitoring: What to Track in Production

Nov 6, 20268 min read
Book a Demo
AI Agent Monitoring: What to Track in Production

TABLE OF CONTENT

SHARE THIS ARTICLE

TL;DR

AI agent monitoring is the continuous tracking of how an AI agent performs in production: whether it completes tasks, how good its outputs are, which tools it calls, what it costs and whether it breaks any rules. Unlike server monitoring, it has to catch failures that look like success, such as a fast, polite reply that took the wrong action. Track six layers (outcome, quality, behavior, tools, cost and safety), alert on changes from your baseline, and link every alert to the trace behind it.

What is AI agent monitoring?

An AI agent takes a goal, plans the steps, calls tools and acts on its own. Monitoring answers one question about that work, continuously: is the agent still doing its job well?

Traditional monitoring asks whether a service is up and fast. That is still necessary for agents, but it misses most of what goes wrong. An agent can return HTTP 200 in under two seconds and still refund the wrong order, quote a policy that doesn’t exist, or loop through the same tool ten times before giving up. None of that shows up as an error.

So agent monitoring adds three things on top of normal service health:

•       Outcome tracking: did the task actually get done, judged at the level of the user’s goal rather than the HTTP response?

•       Quality and policy checks: was the answer correct, grounded in the right sources and within the rules the agent must follow?

•       Behavior signals: did the agent take a sensible path, with the tools and steps you’d expect for this kind of task?

Monitoring vs. observability

The two terms are often used interchangeably, but they do different jobs. Monitoring watches known signals and tells you when something crosses a line: success rate dropped, cost doubled, a red-line rule fired. Observability is the ability to dig into any single run afterwards and understand why it happened, mostly through traces.

You need both, and they share the same data. For the observability side in depth, see our complete guide to AI agent observability. Monitoring tells you there is a problem and how big it is. Observability tells you what caused it. A good rule: every monitoring alert should link straight to an example trace, so the person who gets paged can see the failing run in one click.

See every failing run, with the trace behind it

Start Now

The AI agent metrics to track

Group your metrics into six layers, from the outcome the business cares about down to the signals that explain it. Start at the top: if you can only track three numbers, make them task success rate, escalation rate and cost per task.

LayerMetricHow to measure itExample alert
OutcomeTask success rateTasks completed correctly ÷ all tasks, judged by an eval or a confirmed end state (refund issued, ticket closed)Drops 5+ points below the 7-day average
OutcomeEscalation rateTasks handed to a human ÷ all tasksRises 50% above baseline in an hour
OutcomeUser feedbackThumbs-down, repeat contacts or reopened tickets per 100 tasksRepeat contacts climb two days in a row
QualityGroundedness scoreShare of claims supported by the retrieved sources, scored by a judge model on a sampleFalls below your agreed floor
QualityPolicy complianceShare of actions that pass the agent’s business rules (refund limits, approval steps)Any red-line violation
BehaviorSteps per taskMedian and p95 number of model and tool calls per runp95 doubles after a release
BehaviorLoop rateRuns where the same tool is called with the same arguments 3+ timesAbove 1% of runs
BehaviorPlan deviationRuns that use tools outside the expected set for that task typeA summary task calls a tool that sends email
ToolsTool error rateFailed calls ÷ all calls, per tool2x baseline over 10 minutes
ToolsInvalid argumentsCalls rejected for bad IDs, formats or valuesAny spike on a write tool
RetrievalEmpty or low-relevance retrievalsQueries where no chunk passes the relevance thresholdMore than 10% of queries
Cost and speedCost per taskTotal token and tool spend across the whole run ÷ tasksDoubles against the 7-day average
Cost and speedp95 latency per taskEnd-to-end time from request to final actionBreaches your SLA for 15 minutes
SafetyInjection and jailbreak signalsDetector hits on user input, documents and tool outputAny hit on a tool response
SafetyNew external destinationsDomains, emails or accounts the agent contacts for the first timeAny destination not on the allow-list
SafetySensitive data in outputsPII or secrets detected in replies or tool argumentsAny match

Three notes on reading this table.

Measure at the task level, not the call level. One agent task can involve a dozen model and tool calls. Cost, latency and success only mean something when you add them up across the whole run, which is why session-level tracing matters (Latitude).

Split everything by task type. A refund request and an order-status question can share one agent and fail in completely different ways. An overall success rate of 94% can hide a refund success rate of 70%.

Treat safety signals as first-class metrics. A new destination appearing in tool calls is a classic sign of prompt injection, because an attacker’s instruction usually ends with sending data somewhere (Toolradar). Some attacks only appear across many turns, so review whole sessions, not just single messages.

Setting thresholds and alerts that don’t cry wolf

Agent metrics are noisy. Traffic mix changes by the hour, judge models disagree with themselves at the margins, and a single odd user can skew a small sample. Alerts built on fixed numbers either fire constantly or never. These rules keep them useful.

Alert on change from baseline, not on absolute values. “Tool errors at 2x the 7-day average for 10 minutes” survives a busy Monday. “Tool errors above 3%” does not.

Use three severity levels.

SeverityWhat triggers itWho respondsExample
Page nowA red line was crossed, or real damage is likelyOn-call engineer, immediatelyRefund issued above the agent’s limit; data sent to an unknown domain
Investigate todayA key metric moved well outside its normal rangeAgent owner, same dayTask success down 5 points; cost per task doubled
Review weeklyA slow trend or a new patternTeam, in the weekly reviewSteps per task creeping up; a new type of user request

Red lines are binary. For the few things the agent must never do, such as approving out-of-policy refunds, changing permissions or sending data outside the company, alert on a single occurrence. Don’t average them.

Wait for enough data. Set a minimum sample size before a rate-based alert can fire, so ten tasks at 3am don’t page anyone.

Link every alert to a trace. An alert that says “success rate dropped” starts an investigation. An alert that says “success rate dropped; here are five failing runs” usually ends one.

Re-baseline after every intended change. A new model, prompt or tool changes what normal looks like. Mark releases on your charts and reset baselines deliberately, or your alerts will either flood or go quiet.

Building an agent monitoring dashboard

A good agent dashboard answers four questions in order, top to bottom. The person looking at it should know within ten seconds whether the agent is healthy, and within a minute where to look if it isn’t.

agent monitoring dashboard · 4 rows, top to bottom

Row 1 is the headline: task success, escalations, cost and latency, each split by task type. Row 2 holds quality and safety, with red-line events shown as a count, because any single one needs attention. Row 3 holds the signals that explain changes in the rows above. Row 4 lists recent failing runs with a link to each trace, so nobody has to search logs to find an example.

Two layout tips. Mark every release on every time-series chart, so a step change lines up with the deploy that caused it. And keep one dashboard per agent rather than one for all agents; averages across different agents hide the one that’s struggling.

What to monitor by agent type

The six layers apply to every agent, but the metric that matters most depends on what the agent does. Use this table to choose your top three.

Agent typeWatch most closelyTypical silent failureRed line to alert on
Customer supportResolution rate, escalation rate, repeat contactsPolite answers that don’t solve the problem, so customers come backPromises the business can’t keep, such as unauthorized credits
RAG / knowledge assistantGroundedness, empty retrievals, citation accuracyConfident answers built on stale or missing documentsAnswers that cite a source that doesn’t contain the claim
Transactional (refunds, payments, bookings)Policy compliance, action accuracy, amount distributionActions that pass every technical check but break a business ruleAny action above its limit or outside its policy window
Coding agentTest pass rate, revert rate, commands runChanges that pass review but break something downstreamDisabling checks, changing its own permissions, running unapproved commands
Multi-agent systemHandoff success, per-agent error rate, end-to-end costA task that arrives at the next agent different from how it was sentAn agent requesting actions outside its role

Transactional agents deserve the strictest setup, because their mistakes move money. For them, check the distribution of amounts, not just the count of actions. A refund agent whose average refund creeps up by 30% over a month is telling you something, even if no single refund broke a rule. Multi-agent systems need their own setup, covered in monitoring multi-agent systems.

Catch red-line actions before they reach production

Start Now

Common agent monitoring mistakes

•       Monitoring the model, not the agent. Token counts and per-call latency look healthy while whole tasks fail. Aggregate to the task. Model-level metrics still matter underneath; LLM monitoring covers them.

•       Treating HTTP 200 as success. The response code says the request finished, not that the agent did the right thing. Success needs an outcome check.

•       Averaging everything together. One overall success rate hides the task type that is failing. Break it down.

•       No red lines. Without a written list of things the agent must never do, there is nothing to alert on when it does them.

•       Alerts without traces. An alert that can’t show a failing run turns every page into a manual search through logs.

•       Never re-baselining. After a model or prompt change, old thresholds are wrong. Expect either alert floods or silence.

•       Only watching real traffic. Production monitoring only sees failures that real users happen to trigger. Attacks and rare edge cases may not show up until they cause damage, which is why teams pair monitoring with automated red teaming before and after release.

How to set up AI agent monitoring

1.      Write down the job and the red lines. For each agent, define what a successful task looks like and the few things it must never do.

2.      Instrument every step. Add OpenTelemetry spans for model calls, retrievals, tool calls, guardrail checks and handoffs, tagged with model, prompt and tool versions.

3.      Define the end state for each task type. Decide how you’ll know a task succeeded: a tool call that completed, a ticket that stayed closed, or an eval score above a threshold.

4.      Pick three headline metrics. Usually task success rate, escalation rate and cost per task, split by task type.

5.      Add quality and safety checks. Score a sample of runs for groundedness and policy compliance, score every high-risk action, and run injection detection on inputs and tool outputs.

6.      Build the dashboard and alerts. Use the four-row layout above, baseline-relative thresholds and three severity levels, each linked to traces.

7.      Re-test when the agent changes. A new model, tool, data source or policy is a reason to rerun your tests, not just to watch the dashboard. See when to red team an AI agent for the triggers.

8.      Review failing runs weekly. Read a handful of failed and borderline traces as a team, and turn each new failure mode into an eval and, if needed, a new alert.

The bottom line

Agents rarely fail loudly. They fail with a fast, friendly reply that did the wrong thing, a tool loop that quietly burns budget, or a policy rule that stops matching after a prompt change. Server metrics won’t catch any of it.

Monitor the agent at the level of the task: did it succeed, was it right, did it follow the rules, and what did it cost. Alert on changes, link every alert to a trace, and keep testing the agent the way attackers will, because monitoring only sees the failures real users have already found.

Find what’s broken in your agents before your users do. BotGauge red-teams, traces and monitors AI agents in one place.Try Botgauge for Free or book a 30-minute demo.

What is AI agent monitoring?

It is the continuous tracking of an AI agent’s performance in production, including task success, output quality, tool use, cost and safety, so teams catch failures and regressions before users report them.

How do you monitor AI agents in production?

Instrument every model call, retrieval and tool call with traces. Then track task-level metrics such as success rate, escalation rate and cost per task, add quality and safety checks, and alert on changes from baseline, with each alert linked to an example trace.

What metrics should you track for AI agents?

Start with task success rate, escalation rate and cost per task. Add groundedness and policy-compliance scores, steps per task and loop rate, tool error rate, latency, and safety signals such as injection attempts and new external destinations.

What is the difference between agent monitoring and agent observability?

Monitoring watches known signals and alerts when they cross a line. Observability lets you investigate any single run in depth to find out why it happened. Monitoring tells you there is a problem; observability tells you its cause.

What should an agent monitoring dashboard show?

Four rows: outcomes at the top (success, escalations, cost), quality and safety next, then behavior and tools, and finally a list of recent failing runs linked to their traces.

Which tools can I use for AI agent monitoring?

Options range from open-source tracing tools to commercial LLM observability platforms and APM vendors with agent features. Our comparison of the 12 best AI observability and evaluation tools for agents covers pricing, strengths and gaps.