CloudWatch Omni: an experiment verdict and an SLO for two agents
The script scores two agent versions; CloudWatch computes the verdicts and tracks the SLO. Everything is deleted at the end.
AWS Cloud
Region us-east-1
CloudWatch Omni space
Amazon Bedrock AgentCore Runtime
Presenter
quickstart.py
scores each answer
IAM execution role
trusts cloudwatch.amazonaws.com
SLO
periods with no system errors
Experiment
two runs, rule, verdict
Results log group
one record per case
agentA
control version
agentB
candidate version
1
2
3
4
5
6
1
2
3
4
5
6
LINES
Create SLO and experiment, report scores
Invoke each agent three times
Assume role
Run records and metrics
FLOW
The script creates an SLO, an execution role, a log group and an experiment.
It sends the same three cases to agentA, then agentB, and scores each answer in code.
It reports the scores. CloudWatch applies the rule and returns a verdict per run.
CloudWatch assumes the execution role to write run records.
Each case record lands in the results log group in your account.
The SLO reads the runtime's system error metric with PromQL, once a minute.