ON-PREM CHOREO CLOUD BOTH

What it is

A monitor is a saved evaluation job for one agent in one environment. It lists the evaluators to run, a sampling rate (default 1.0, which means every trace) and either a fixed time range (type past) or a repeat interval (type future, 60 minutes by default and at least 5). Each run is a workflow that scores traces with the amp-evaluation library and sends the scores back to Agent Manager.

A monitor is a scheduled inspector who samples your agent's work every hour, marks it against a checklist and files the marks in a ledger.

Why it exists

Agent quality can drift after release. A monitor keeps scoring real traces so a drop is noticed without anyone reading logs.

How it works

  • Create it with POST /orgs/{org}/projects/{project}/agents/{agent}/monitors (permission amp:monitor:create). Agent Manager also makes sure the organization has credentials for publishing scores.
  • A scheduler in the service wakes up every minute and starts runs for future monitors that are due. A database lock makes sure only one replica does this.
  • A run creates an OpenChoreo WorkflowRun of the workflow monitor-evaluation-workflow, which runs on the workflow plane. A run that stays unfinished for 45 minutes is given up on.
  • The evaluation job reads the traces from amp-observer and posts scores to /publisher/monitors/{monitorId}/runs/{runId}/scores.
  • Evaluators that use an LLM judge go through an organization LLM provider by way of a gateway proxy.
  • Runs go in the monitor_runs table and scores in the scores table.

Key facts

Tables
monitors, monitor_runs, scores
Types
past (time range), future (repeating)
Default interval
60 minutes (minimum 5)
Default sampling
1.0 (every trace)
Workflow
monitor-evaluation-workflow
Permissions
amp:monitor:create, read, update, delete, execute

Talks to (1)