Observability & Insights
AgentWatch’s observability layer is built on the fact that every request already passes through it. Nothing needs to be instrumented in application code to be measured.
What is captured per request?
Section titled “What is captured per request?”Tokens (prompt, completion, and cached), cost, duration, time-to-first-token, model, provider, team, user, session, endpoint, status, and trace ID — plus an automatic task category (Code, Content, Data Analysis, or a custom category). Full conversation transcripts are retained, subject to DLP redaction policy, and are browsable per employee, per team, and per session — which answers “what did this person actually ask the model this morning?” without log archaeology.
What does the Observe workspace show?
Section titled “What does the Observe workspace show?”A unified observability workspace inside the console, with themed dashboards across nine surfaces:
| Surface | What it covers |
|---|---|
| AI | Request, token, cost, and latency KPIs; provider explorer; prompt lineage (DLP-scrubbed); agent topology; quality evaluations |
| Services | Distributed-trace waterfall and end-to-end service flow through the gateway pipeline |
| Fleet | Deployed-agent health grid, agent inventory, and version distribution |
| Optimize | Direct-versus-optimized comparison of model calls, tokens sent, cache hits, and estimated cost saved |
| Business | Request-to-outcome funnel and spend by team |
| Security | Risk-ranked DLP, firewall, and guardrail threats; attack mix; incident timeline |
| Insider Risk | AI-agent risk scoring and enforcement standings |
| Delivery | Release verification pass/warn/fail results |
| Logs | Query bar, volume histogram, and facets over gateway events |
Can I query my AI usage in plain English?
Section titled “Can I query my AI usage in plain English?”Yes. AgentWatch includes a built-in analytics interface that answers natural-language questions over your own audit and usage data — for example “which teams’ usage grew more than 50% last month?”, “show every employee who triggered a DLP violation in the last 30 days by category”, or “which application caused this morning’s spike in rate-limit errors?”. Conversations persist per administrator, so a thread can be resumed later. Trend and anomaly detection flag deviations from baseline automatically. It is designed for compliance officers, FinOps analysts, and managers rather than for engineers writing queries, and it can be configured to run against a local model so the analysis itself stays in-boundary.
Which monitoring tools does it integrate with?
Section titled “Which monitoring tools does it integrate with?”AgentWatch emits standard telemetry rather than requiring its own stack:
- OpenTelemetry (OTLP, Jaeger, Zipkin) for traces, metrics, and logs — consumed by Jaeger, Grafana Tempo, Datadog, Honeycomb, New Relic, or AWS X-Ray. Tracing is off by default; when OpenTelemetry is enabled, spans are emitted subject to the configured sample rate.
- Prometheus metrics at a standard endpoint — latency histograms, token counts per model, success and error rates, queue depths, circuit-breaker state.
- Langfuse for LLM-specific trace and generation tracking, with configurable sampling.
- Log platforms — structured JSON per request, ingested by ELK, Splunk, Loki, or Datadog Logs. Authentication failures, rate-limit breaches, DLP violations, and budget thresholds emit to separate streams, so a SIEM can subscribe selectively.
- Distributed tracing with W3C Trace Context: the gateway adopts the caller’s
traceparent, forwards one to every provider and MCP tool call, and exports its own span into the same trace. See How do I see the gateway hop in my own traces?.
How does the event pipeline work at scale?
Section titled “How does the event pipeline work at scale?”An event stream covers request and response, DLP scans and violations, authentication outcomes, budget thresholds and breaches, provider health changes, rate limiting, agent heartbeats and captured traffic, MCP tool calls, guardrail and schema violations, and webhook deliveries. Each class is separated so security, FinOps, and SRE teams subscribe only to what they need. Optional Kafka and a columnar analytics database support high-volume deployments where dashboards must slice tens of millions of rows by any dimension in sub-second time; a file-based archiver covers smaller deployments. All of it runs inside the customer environment — no event leaves the boundary unless an outbound webhook or exporter is explicitly configured.
What about audit and reporting?
Section titled “What about audit and reporting?”Audit logs are retained per configurable policy (default one year for audit records) and export as JSON or CSV data, or as a PDF report for auditors, from the UI or programmatically for SIEM ingestion. Access to audit data is itself permissioned, and the permission to read audit records is separable from the permission to export them — so an analyst can investigate without being able to exfiltrate.
Where do I look first?
Section titled “Where do I look first?”Usage Insights is the per-request record: who called, which model, tokens, cost, latency, DLP outcome, and the full transcript on drill-down. Observe is the aggregated workspace across usage, security, fleet, and delivery.
Filter the audit trail by employee, model, status, custom tag, detection or time range, then open a row to see the conversation exactly as it was sent and returned.
How do I see only the requests that contained an SSN, or only guardrail hits?
Section titled “How do I see only the requests that contained an SSN, or only guardrail hits?”Use the Detection button in the audit-trail toolbar (Usage Insights → Full Audit Trail → Detection). It has two parts, and you can use either or both:
- Detected by: DLP (personal data, secrets, payment cards and similar) or Guardrails (gibberish, toxicity, prompt injection and the other content scanners).
- Type: every detection type recorded in the selected time range, such as
ssn,password,creditCardVisa,emailorgibberish. Each type shows which engine raised it and how many requests it was found in.
Types are any-of: ticking ssn and password shows requests with either. The
engine and the type combine, so Guardrails with gibberish shows gibberish
that the guardrails raised. The filter selects the same requests the
Observe → Security page counts, and it covers every outcome: blocked,
redacted, and detect-only requests that were served unchanged.
A matching conversation is shown with all of its turns, including the turns in which nothing was found, so you can read the context. Export Audit Trail exports exactly the rows on screen, so a filtered export contains only those requests.
The same filter works through the API. detections and detectionSources take
comma-separated lists:
# every conversation in the last hour in which DLP found an SSN, as CSVcurl -s "https://<your-agentwatch-host>/admin/audit/export?format=csv&detections=ssn&detectionSources=dlp&startDate=2026-11-03T17:00:00Z" \ -H "Authorization: Bearer <tenant-admin JWT>" -o ssn-last-hour.csv
# the detection types recorded in a window (what the Type list shows)curl -s "https://<your-agentwatch-host>/admin/audit/detection-types?startDate=2026-11-01T00:00:00Z" \ -H "Authorization: Bearer <tenant-admin JWT>"How do I look at the last hour, or a specific time window?
Section titled “How do I look at the last hour, or a specific time window?”The Time range menu offers Last 15 minutes, Last 1 hour, Last 4 hours, Last 24 hours, Last 7 days, Last 30 days and All time. A preset moves with the clock: the table refreshes every 30 seconds, and Last 1 hour always means the hour before now.
Choose Custom range… to enter a From and To date and time, for example 2 November 09:30 to 3 November 17:15. The times are in your browser’s time zone, and the To minute is included in full. Switching from a preset to Custom range… fills in that preset’s window so you can adjust it. The time range also applies to the Detection type list and to the export.
| Symptom | Cause | Fix |
|---|---|---|
| “The From time is after the To time” | The custom range is reversed | Swap the two times |
| The Detection type list is empty | Nothing was detected in the selected time range | Widen the time range |
| A type you expect is missing from the list | The list shows only types found in the selected window | Choose All time or a wider custom range |
How do I find a detected value in the conversation?
Section titled “How do I find a detected value in the conversation?”Open a row, click Run Analysis, then click a card under Sensitive Data Detected (for example US Phone Numbers). The conversation scrolls to the first match and highlights every match of that type. Use the arrows in the yellow bar to move between matches and Clear to remove the highlighting.
This also works for requests that DLP only recorded (Detected): the gateway stores which types it found, not the values, so the analysis locates the values again in the conversation. The analysis response gives only the position of each match, never the value itself. Your browser reads the value from the conversation it is already showing.
| Message | Cause | Fix |
|---|---|---|
| “Can’t locate … in this version of the conversation” | The saved analysis was made before the conversation changed, or before this release | Click Re-analyze |
| “… is in the analysed text but not in a visible part of the thread” | The value is in part of the request that the thread does not display | Use Search in the audit trail for the context |
| A card for a name, organization or location highlights nothing | Finding names and places needs the Advanced NER detector, which is not running on this deployment | Turn on Advanced NER in Settings → Company Policy → Data Protection |
How do I get the data out?
Section titled “How do I get the data out?”# the audit trail, filteredcurl -s "https://<your-agentwatch-host>/admin/audit/trail?limit=100" \ -H "Authorization: Bearer <tenant-admin JWT>"
# a compliance exportcurl -s "https://<your-agentwatch-host>/api/admin/audit/export?format=json&days=30&source=all" \ -H "Authorization: Bearer <tenant-admin JWT>" -o audit-30d.json
# the same records as an auditor's PDF reportcurl -s "https://<your-agentwatch-host>/api/admin/audit/export?format=pdf&days=30&source=all" \ -H "Authorization: Bearer <tenant-admin JWT>" -o audit-30d.pdfThe export takes format (json, csv or pdf), days (a whole number from 1 to 365) and source (all, api, web-chat or mcp). A value outside those is refused with 400 and the reason, rather than exported as something else. Every LLM request row carries its workspace, employee and email, conversation id, status and DLP verdict (blockReason, blockCode, riskScore, dlpClassifications); the summary totals add up the rows in the file. Governance events are included only when source is all (governanceIncluded says which). In the CSV, a cell that starts with =, +, - or @ is written with a leading apostrophe so a spreadsheet shows it as text instead of running it.
The audit trail pages by conversation, not by row. limit (at most 1,000)
and total count conversations, and each conversation on the page comes with
all of its turns, so data can hold more rows than limit. The response says
so itself: pageUnit is "conversation", conversationCount is the number of
conversations on the page, and rowCount the number of rows. To fetch the next
page, add limit to offset.
The Observe workspace reads the same numbers through a documented API, so anything on a dashboard can go into your own reporting:
curl -s "https://<your-agentwatch-host>/admin/api/observability/kpis?window=7d" \ -H "Authorization: Bearer <tenant-admin JWT>"curl -s "https://<your-agentwatch-host>/admin/api/observability/timeseries/cost?groupBy=team&window=30d" \ -H "Authorization: Bearer <tenant-admin JWT>"curl -s "https://<your-agentwatch-host>/admin/api/observability/model-usage?window=30d" \ -H "Authorization: Bearer <tenant-admin JWT>"What is in the PDF audit report?
Section titled “What is in the PDF audit report?”format=pdf (console: Audit Export → Format → PDF report) is a report for an
auditor rather than a data file. It is built from exactly the rows the JSON and
CSV would hold for the same period, source, provider and tag filters, with the
same access rules: an organization admin gets their organization, a super admin
all organizations or the one chosen, and an employee only their own requests.
| Section | What it holds |
|---|---|
| Cover | Organization, period (start and end, UTC), generated-at, the source / provider / tag filters, row counts per section, and how many rows the tables list |
| Summary | Requests by status (completed, blocked, redacted, failed), DLP findings by category, top 10 users and models, governance event count and top actions. The summary counts every row in the export. |
| LLM request records | Timestamp, user, model and source, status and block code, DLP categories, tokens, and the prompt preview |
| Governance & activity events | Timestamp, actor, action, target and IP address (included when source is all) |
The prompt preview is the same DLP-scrubbed preview the JSON and CSV carry, shortened to two lines; the report never prints more. Response previews and governance event details are not printed (they are in the JSON and CSV).
Two limits, both stated in the document:
- The export cap (100,000 rows per section) applies to the PDF exactly as to JSON and CSV. When it is reached, the cover carries an INCOMPLETE notice and every page footer repeats it. Narrow the period or filter and export again.
- The PDF detail cap (10,000 rows per section). A report of 100,000 rows would run to thousands of pages, so the record tables list the first 10,000 rows (newest first) and say how many more the export holds. The summary still counts all of them. For every row, download CSV or JSON.
Text outside the Western European character set (for example CJK names) is
shown as ? in the PDF, because the report uses the standard PDF fonts; accented
letters such as ą are shown without the accent. The JSON and CSV carry the
original text.
What is in each column of the CSV export?
Section titled “What is in each column of the CSV export?”The CSV is written as UTF-8 with a byte-order mark and served as
text/csv; charset=utf-8. The BOM is what stops Excel opening the file in the
system codepage — without it, em-dashes and other non-ASCII characters arrive
corrupted even though the bytes were always correct.
| Column | What it is |
|---|---|
| Timestamp | When the request was recorded |
| Employee | The identity the request was attributed to |
| LLM Account / Verified / Plan | The consumer AI account behind a request — a signed-in ChatGPT or Claude session captured from a browser or an enrolled endpoint. Traffic authenticated with a gateway API key has no such account, so these are empty by design on an API-only deployment |
| Model | The model that was requested |
| Task Type (best-effort) | A keyword heuristic over the prompt text. Labelled best-effort because it is one — do not build reporting on it; use Tool Calls and Turn instead |
| Tool Calls | How many tool calls the response made. A fact, recorded at write time; populates for every request the gateway proxies |
| Turn | user when a person’s message drove the turn, agent when the model was being handed its own tool’s output. This is how you separate one human request from the forty internal steps of an agent run |
| Query Preview / Response Preview | The first AW_USAGE_PREVIEW_CHARS characters (default 1000). Tool calls appear with their arguments, and an agent turn shows the tool result it was reacting to |
| Tokens / Duration / Status | As recorded |
| Cost | Blank when the model has no pricing configured — see below |
Why is the Cost column blank or zero?
Section titled “Why is the Cost column blank or zero?”A blank cost and a 0.0000 cost mean different things, deliberately:
| You see | It means | What to do |
|---|---|---|
| A number | The model is priced and this is the computed cost | — |
0.0000 |
The model is priced, and this call genuinely cost that | — |
| Blank | No pricing exists for this model — nothing was measured | Set the rates (below) |
Self-hosted and newly imported models arrive with no rates, so every call
against them costs nothing as far as the gateway knows. Earlier releases printed
0.0000 in all three cases, which a finance report then summed as though it had
been measured. Set the rates once and every later row is costed:
Console path: Settings → Models → (your model) → Edit → Cost per 1M tokens.
curl -s -X PUT "https://<your-agentwatch-host>/admin/models/<model-id>" \ -H "Authorization: Bearer <admin JWT>" -H 'Content-Type: application/json' \ -d '{"inputCostPer1m": 0.35, "outputCostPer1m": 1.40}'You should now see a cost on new rows for that model. Pricing is not retroactive — rows already written keep the cost they were recorded with.
How do I see what an agent actually did?
Section titled “How do I see what an agent actually did?”Raise the preview budget and the tool-call arguments come with it. Set
AW_USAGE_PREVIEW_CHARS on the gateway (default 1000, clamped to
200–20000) and restart:
AW_USAGE_PREVIEW_CHARS=4000Response previews then carry [Tool Calls: search_docs({"q":"refund policy"})]
alongside the model’s prose rather than instead of it, and a turn that fed a
tool result back shows [Tool Results: toolu_01 → …] in place of the old
[non-text content] placeholder. Filter the export on Turn = agent to see
only the internal steps.
The cap applies after DLP scrubbing, so raising it never widens what a redacted row exposes.
How do I wire it into our monitoring?
Section titled “How do I wire it into our monitoring?”Prometheus scrapes the gateway directly:
curl -s https://<your-agentwatch-host>/metrics | headOpenTelemetry traces export to any OTLP collector, and the event pipeline streams every request to Kafka or ClickHouse for long-term analytics. Configure both under Settings → System; the panel shows live pipeline status rather than a static label, so you can tell a running pipeline from a configured one.
For alerting, webhooks fire on security and budget events — including
security.rate_limit_exceeded and security.suspicious_activity.
How do I see the gateway hop in my own traces?
Section titled “How do I see the gateway hop in my own traces?”AgentWatch speaks W3C Trace Context (since 2.0.412). Send a traceparent
header with your request, exactly as an OpenTelemetry SDK does, and the gateway
joins your trace:
curl -s https://<your-agentwatch-host>/v1/chat/completions \ -H "Authorization: Bearer ak_..." \ -H "Content-Type: application/json" \ -H "traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" \ -H "tracestate: congo=t61rcWkgMzE" \ -d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}' \ -D - -o /dev/null | grep -i x-agentwatch-trace-id# x-agentwatch-trace-id: 4bf92f3577b34da6a3ce929d0e0e4736What happens to that header:
| Step | Behaviour |
|---|---|
| Inbound | A valid traceparent (version 00, lowercase hex, trace id and parent id not all zeros) is adopted. Anything else — wrong version, uppercase hex, wrong length, two headers — is ignored and the gateway starts a new trace. A malformed value is never forwarded |
tracestate |
Passed through unchanged when the traceparent is valid and the list is well formed (at most 512 characters and 32 members); otherwise dropped |
| Upstream | Every call the gateway makes for the request carries traceparent: 00-<your trace id>-<gateway span id>-<your flags>: chat (streaming and non-streaming, Vertex, keyless Bedrock), embeddings, images, audio, the transparent and generic relays, gateway-route forwarding and MCP tool calls |
| OpenTelemetry | With export enabled (Settings → System → OpenTelemetry), the gateway’s span uses your trace id, the gateway span id above, and your span as its parent, so your service, the gateway and the provider show as one trace. If your traceparent says sampled (-01), the gateway span is recorded whatever the local sample rate |
| Response | The trace id comes back in the X-AgentWatch-Trace-Id header — also when you sent no traceparent, so you can look up a gateway-started trace |
| Usage Insights | Every usage row carries the tag trace_id; pick trace_id in the Audit Trail’s Header / Tag filter to go from a trace to the row, or the other way |
| Symptom | Cause | Fix |
|---|---|---|
| The response’s trace id differs from the one you sent | Your traceparent was malformed (often uppercase hex or a missing flags field) |
Send exactly 00-<32 lowercase hex>-<16 lowercase hex>-<2 hex> |
| The gateway span is missing from your backend | OpenTelemetry export is off, or your header said not sampled (-00) and the local sample rate dropped it |
Enable export; send -01 for traces you keep |
The provider received no traceparent |
AW_TRACE_PROPAGATION=0 is set on the gateway |
Unset it; it disables outbound injection only |
A row’s trace_id is not the id you sent |
You set x-aw-tag-trace_id yourself |
trace_id is a gateway-stamped tag; send a traceparent instead |
The dashboards are empty. Is it broken?
Section titled “The dashboards are empty. Is it broken?”Usually not — it means what it says. Work down this list:
| Check | Why |
|---|---|
| Is demo mode off? | Outside demo mode the console shows real data only; a quiet deployment shows empty panels by design |
| Are you signed in with an admin role? | The observability API requires super-admin or admin; an unauthenticated probe returns nothing and the panel reports “no data” |
| Has any traffic gone through the gateway in the window? | Widen the window, or send one test request |
| Are you looking at the right organization? | A super-admin with no ?organizationId= sees the platform scope |
Panels state which of live, demo data or no data they are showing, so
a populated-looking dashboard is never fabricated — if it says live, a query
returned those rows.
Why are my audio and image calls missing from a per-organization read of the archive?
Section titled “Why are my audio and image calls missing from a per-organization read of the archive?”They were being written without an organization, so they landed in a separate
directory (events/_platform/…) from chat events (events/platform_<org-id>/…).
The records were always produced — reading the archive by organization simply
did not find them. Fixed in 2.0.295; events written after upgrading carry the
organization.
Archive files already written keep the path they were written to. If you need a complete per-organization history across the upgrade, read both locations for that period.
Why was a blocked image or audio request charged?
Section titled “Why was a blocked image or audio request charged?”It should not have been, and is not from 2.0.295. A request refused by policy never reaches a provider, so it costs nothing — a blocked chat request has always recorded zero. Blocked image and audio requests were being priced on their prompt tokens anyway. Audio made it plainer: it is billed per minute, and a refused upload has no duration at all.
Rows already written keep the cost they were recorded with.
How do I find an Observe → Logs entry in Usage Insights or the Audit Export?
Section titled “How do I find an Observe → Logs entry in Usage Insights or the Audit Export?”Every DLP line in Observe → Logs has a matching request in Usage Insights
and in the Audit Export. Each line ends with req=<id>, and that is the
request’s own id: the Audit Export’s request_id column holds the same value.
dlp.block type=ssn entities=["pii","ssn"] risk=7 req=req_1760900000_ab12cddlp.detect type=email entities=["pii","email"] risk=2.8 req=req_1760900042_9f3e1adlp.blockanddlp.redact: the request’s row in Usage Insights shows Blocked or Redacted.dlp.detect: the policy only recorded the finding (Detect only, or below the redaction tiers), so the request was served and its row reads Completed. That row also carries the tagdlp_verdict=detected, so the Tags filter lists every request with a recorded-only finding.
The person is the same in both places, though shown differently: Logs names them by email address, and Usage Insights by display name.
Sources and references
Section titled “Sources and references”- Compliance retention settings: Security and compliance.
- Cost reporting and chargeback: Governance and cost control.