Your team ships a new chatbot or copilot, and everything works fine until it doesn’t. The bot gives a confidently wrong answer. Generative AI spend spikes overnight. Latency jumps from two seconds to ten.
You open your APM dashboard, but it can’t show which model handled the request, which prompt version was live, or why the response went sideways.
That’s the gap generative AI monitoring fills. It extends the same observability discipline you already use, including tracing, alerting, and root cause analysis, to large language models and the prompts, tokens, and outputs moving through them.
Here’s what to monitor once large language models (LLMs) are running in production.
What to monitor in a generative AI application
Standard monitoring tracks requests, response times, and error rates.
To understand how a generative AI application is actually performing in production, you also need to monitor the signals that reveal what the model is producing, how efficiently it’s running, and what’s happening inside each interaction.
Here’s what to track.
Response quality
Response quality measures whether model outputs are accurate, relevant, safe, and appropriate for the intended task.
Take a support copilot that invents a return policy your company has never had. The API call returns a 200 in under a second, so the request looks completely healthy: no error, no latency spike, nothing to trigger an alert. But the model output itself is wrong, and traditional application metrics won't tell you that.
That's why you need to monitor the output itself. Track hallucinations, toxicity, biases, and other quality signals, then alert when they cross defined thresholds, just as you would for a spike in error rates.
Token-level latency and cost
Token-level metrics track how many tokens each LLM call consumes, what they cost, and how quickly the model generates them.
Every model call has a cost, and it isn't fixed. It moves with prompt length, output length, and which model handled the request. As Deloitte explains, token-based AI costs are inherently variable, with consumption changing based on factors such as workload design and prompt engineering.
That means a small change to an application can have a much bigger effect on spend than you expect. A prompt template might start pulling in a longer document for context, for example, or a retry loop might send the same request two or three times. Without visibility into token usage, that extra consumption can be difficult to spot until overall costs rise.
Track token usage and latency per request, user, feature, and model. That lets you trace a cost or performance spike back to longer prompts, larger completions, retries, or a change in model.
Model-to-model comparison
Model comparison measures cost, latency, and response quality across different models performing the same task.
Teams running more than one model may do so for cost, fallback coverage, or task-specific quality. A summarization task might run fine on a cheaper, faster model, while a customer-facing support answer needs the more capable (and more expensive) one. Without comparison data, that split gets decided once, in a planning meeting, and never revisited.
Put cost, latency, and quality side by side for each model on the same request type, so decisions about switching or routing tasks between models are based on data, instead of a guess about which one feels faster.
Prompt injection and other security signals
Security monitoring detects inputs and model behaviors that could indicate prompt injection, manipulation, or attempts to expose sensitive information.
Watch for injected instructions, attempts to extract the system prompt, or output patterns that suggest a model is being manipulated. This overlaps with security tooling, but these signals should sit alongside the rest of your generative AI monitoring data rather than in another silo your team has to check separately.
Audit trail for compliance
An AI audit trail creates a record of what happened during each LLM interaction, including the model and prompt versions used, the input the model received, the output it generated, and relevant metadata.
That gives you a history you can go back to when a particular response needs investigating. If a customer receives an incorrect answer, for example, you can reconstruct which version of the model produced it, what instructions and context it received, and what it returned.
That traceability matters for debugging, but it can also support audit and compliance requirements where teams need to show how an AI-generated output was produced. Without that record, it's much harder to explain a past response after the fact.
Where generic APM falls short for GenAI workloads
Standardapplication performance monitoring (APM) is built to trace requests as they move through applications, services, databases, and other dependencies. But instrument a generative AI application in the same way as a conventional application, and some of the information you need to diagnose an AI-specific problem is missing.
- Model calls become a black box. A traditional APM trace might show that your application called an inference endpoint and how long the request took. Without GenAI-specific telemetry, it won't necessarily tell you which prompt was sent, which model handled it, how many tokens were used, or what the model returned.
- Request metrics don't explain AI costs. Standard dashboards can show request volume and latency, but those metrics alone don't tell you how token usage is changing across prompts, models, or features. A service can handle the same number of requests while its AI costs climb.
- A successful request can still produce a bad response. If the model hallucinates or returns an inappropriate answer, the request itself may still complete successfully. Without the prompt, model, output, and upstream trace connected together, root cause analysis can turn into manually piecing together data from logs.
These gaps are driving greater attention to AI observability. Gartner expects 40% of organizations deploying AI to use AI observability tools to monitor model performance by 2028.
The answer isn't to replace APM. It's to extend the telemetry you already collect so model-specific data can be correlated with the rest of the application. AsAI becomes part of the wider observability discipline, that correlation is what lets teams investigate AI behavior in the context of the systems around it.
Building GenAI monitoring into your existing observability stack
You don't need to create a separate monitoring workflow for generative AI. Instead, extend the observability process you already use so AI-specific telemetry can be correlated with the rest of your application data.
- Instrument the AI layer. Capture prompts, responses, token counts, latency, and model and version metadata at the point each call happens. This gives you the telemetry data needed to see what happened inside an LLM interaction, rather than stopping at the inference endpoint.
- Correlate AI telemetry with your existing traces. Tie each model call to the same trace ID as the API request, database query, and upstream and downstream services around it. That gives you an end-to-end view of the request, so you can trace an AI problem back through the application instead of investigating the model in isolation.
- Alert on AI-specific thresholds. Treat changes in response quality, token usage, cost, and latency as first-class monitoring signals. For example, you might trigger an alert when hallucination scores rise above an acceptable threshold, token usage suddenly increases, or latency per token starts trending upward.
The goal is continuous monitoring, not a parallel AI monitoring process. If your team already alerts on error rates and P95 latency for an API, generative AI metrics become another set of signals feeding the same dashboards, alerts, and incident workflows.
Keeping those signals together also supportsobservability that works across engineering teams: when an AI-related incident occurs, engineers can investigate the model, application, and infrastructure in context instead of switching between separate monitoring tools.
How New Relic AI monitoring extends APM to GenAI
New Relic AI monitoring extends the APM signals and workflows your team already uses to include generative AI applications. That means you can connect model behavior with the application and infrastructure around it rather than monitoring LLMs in isolation.
- Correlate AI performance with the full stack. Connect AI telemetry with application and infrastructure data in one place. If a generative AI application slows down or starts returning poor responses, you can investigate what happened across the wider request instead of stopping at the model call.
- Compare model cost and performance. Track token usage, latency, and response quality across models to see how each performs for your workloads. You can also use AI monitoring data in the same dashboards and alerting workflows you use for application metrics.
- Trace the response lifecycle end to end. Follow the full trace from prompt to response, including user feedback, so a flagged answer can be traced back to the prompt, model version, and upstream call that produced it. A consolidated response view also helps surface outliers and trends across model outputs, while trace-level data helps investigate quality issues such as hallucinations, bias, and toxicity.
The same visibility becomes especially important as LLM calls turn into multi-step agent workflows.New Relic AI Agent Monitoring shows how agents interact across a workflow, helping you trace where an agentic AI process slows down, fails, or produces an unexpected result instead of treating each agent call as an isolated event.
Monitor GenAI in context
Generative AI monitoring shouldn't create another observability silo. The goal is to connect model cost, quality, and performance with the application and infrastructure signals your team already uses to understand production.
With AI observability built into the same platform, New Relic lets you trace AI behavior in context, compare models and token usage, and investigate problems across the full stack.
Try New Relic free to start monitoring your generative AI applications alongside the rest of your stack.
FAQs about generative AI monitoring
Do I need a separate tool for AI monitoring, or can it run inside my existing observability stack?
AI monitoring can run inside your existing observability stack if your platform supports AI workloads, which is one of the main things to check when comparing LLM observability tools. Keeping AI, APM, infrastructure, and log data together supports real-time monitoring and lets teams investigate AI-related issues alongside the rest of the application.
How do you track cost per model or per prompt version?
You track cost per model or prompt version by capturing token usage for every model call and tagging it with the model, model version, and prompt version. This lets you break down costs by model, feature, user, or prompt change instead of seeing one combined total.
Can you compare quality, latency, and cost across different models?
You can compare model quality, latency, and cost by tracking the same metrics for each model handling the same type of request. This makes it easier to spot performance differences, detect anomalies, and identify model drift over time.
Does this help with prompt-injection or other LLM security risks?
Generative AI monitoring can help detect prompt-injection attempts and other unusual LLM behavior, but it doesn't replace security guardrails. Monitoring can surface unexpected requests or model outputs so security teams can investigate and respond, and New Relic Security RX adds protection against misuse and malicious attacks on the same platform.
Is this enough to support audit or compliance requirements for AI use?
Generative AI monitoring can provide the audit trail needed to support AI compliance, but whether it meets specific requirements depends on your industry and obligations. Recording model versions, prompt versions, inputs, and outputs makes past AI interactions easier to reconstruct.











