Live quality monitors are available through the REST API and the console under Evals → Monitoring. Typed SDK and CLI helpers follow automatically once your cluster publishes the updated OpenAPI specification.
Before you start
- Opt-in only. No live traffic is sampled until you create and enable a monitor.
- Scopes. Reading monitors, samples, and drift alerts requires
read:evals. Creating, updating, evaluating, recalibrating, acknowledging, resolving, and deleting monitors requireswrite:evals. - Role requirements. Creating or modifying live traffic monitors (
teamororgscope) requires an organization owner or admin acting directly (not viaX-On-Behalf-Of), because monitors sample traffic across the team or organization.
Built-in evaluators and custom rubrics
Monitors use reference-free evaluators designed for live traffic where ground-truth labels do not exist. List the catalog withGET /api/v1/llm/evals/monitors/evaluators:
You can also attach
custom_rubric evaluators with a domain-specific 0.0–1.0 scoring rubric. When a monitor enables multiple LLM-judged evaluators, the worker batches them into one structured judge call per sample.
Create a quality monitor
Create a monitor targeting a saved agent, a model, or all matching traffic in the team or organization.Bash
- Targeting. Filter by
target_agent_id,target_model, andapi_surfaces(responses,chat_completions, or both). - Sampling and cost caps.
sample_rateselects a deterministic fraction of eligible requests without blocking the live response path.max_samples_per_day,max_daily_cost_usd, andmax_judge_tokens_per_daybound daily judge spend, andmax_input_chars/max_output_charsbound each sample payload. - Baselines.
baseline_mode: "auto"calibrates the baseline mean and standard deviation oncebaseline_min_samplesare scored.baseline_mode: "fixed"starts enforcing immediately againstfixed_baseline_score. - Drift thresholds. An alert triggers when a rolling
window_minuteswindow has at leastmin_samplesscored samples and either drops by at leastmax_dropfrom the baseline (drop_from_baseline) or falls belowmin_score(below_floor).cooldown_minutesprevents duplicate notifications while a metric remains drifted. Active alerts auto-resolve once the rolling score recovers above the threshold with hysteresis.
Privacy and residency controls
Quality monitoring applies structural privacy controls at capture, judging, storage, and alerting:store: falseexclusion (Responses). Any Responses request sent withstore: falseis unconditionally excluded from live sampling. Chat Completions does not carry astoreflag, so all matching Chat Completions requests on a monitored surface are eligible.- Secret redaction. With
redact_secrets: true(the default), the gateway runs its secret redactor over captured input and output text before sending samples to the judge or writing previews, masking credentials, bearer tokens, and API keys. - Scores-only retention. With
payload_retention: "scores_only"(the default), input and output text is cleared immediately after scoring, leaving only numeric scores, judge rationales, and usage metadata. Setpayload_retention: "redacted_preview"if you want to inspect bounded previews in the console untilretention_daysexpires. Deleting a stored response immediately clears captured previews and judge payloads for that response. - Judge model pinning. Setting
judge_modelpins judging to that exact model ID and disables cross-provider fallback. Leavejudge_modelunset to use your organization’s default analyzer model. - Metadata-only alerts. Drift alert events include only monitor IDs, metric IDs, scores, deltas, thresholds, and window timestamps—never raw prompts or outputs.
Evaluate on demand and inspect results
Background scoring runs continuously on the eval worker. You can also trigger an immediate scoring and drift-evaluation pass:Bash
Bash
Bash
Bash
Drift alerts and notification channels
Every drift breach is stored on the monitor and visible in Evals → Monitoring and viaGET /api/v1/llm/evals/monitors/alerts. Acknowledge or resolve an alert through the console or API:
Bash
notify_on_drift is true, the gateway also emits a quality.drift_detected audit alert event. Subscribe to quality.drift_detected in Admin → Alerts to route drift alerts to tenant Webhook, Email, or ITSM rules scoped to your organization or team.
Pause, resume, or delete a monitor
Pause sampling without deleting historical scores or alerts:Bash
Bash
What to read next
- Evaluations covers offline task suites and Python graders for pre-release testing.
- Schedule eval runs covers recurring scheduled suite runs.
- Guardrails covers real-time inline input and output blocking policies.