服务 · Management and Governance
Amazon CloudWatch
Collects metrics and logs and raises alarms, so you can monitor how your AI services are used.
本课尚未翻译,暂以英文显示。
- 1Amazon Bedrock sends usage metrics to CloudWatch.
- 2An alarm watches a metric, such as token use.
- 3When the limit is crossed, the team is notified.
分步说明
- 1Amazon Bedrock sends usage metrics to CloudWatch.
- 2An alarm watches a metric, such as token use.
- 3When the limit is crossed, the team is notified.
Metrics flow to CloudWatch, and an alarm tells your team.
Metrics
- What it is
- Numbers over time
- AI example
- Requests, latency, tokens
Logs
- What it is
- Text records of events
- AI example
- Prompts and answers, errors
Alarms
- What it is
- Alert at a threshold
- AI example
- Notify when token use spikes
| Signal | What it is | AI example |
|---|---|---|
| Metrics | Numbers over time | Requests, latency, tokens |
| Logs | Text records of events | Prompts and answers, errors |
| Alarms | Alert at a threshold | Notify when token use spikes |
是什么
Amazon CloudWatch collects metrics (numbers over time), logs (text records) and alarms (alerts when a number crosses a line). AWS services send metrics to it automatically.
For AI, CloudWatch shows how a model is used: number of requests, latency and token counts, which drive cost. An alarm can warn you when use jumps, when errors rise, or when the cost is heading above budget. Amazon Bedrock can also send model invocation logs, the prompts and answers, to CloudWatch Logs.
That makes CloudWatch the monitoring and logging side of governance. AWS CloudTrail is the audit side.
要记住
- CloudWatch: metrics, logs and alarms.
- Watch requests, latency, errors and token use of a model.
- Alarms notify people when a number crosses a threshold.
- Model invocation logs can be sent to CloudWatch Logs.
- CloudWatch monitors performance. CloudTrail audits API calls.
考试中
- “Alert the team when model requests or token use spike” points to an Amazon CloudWatch alarm.
- “Monitor latency and errors of an AI application” points to Amazon CloudWatch.
别和这些弄混
AWS CloudTrailRecords API calls in your account: the audit trail of who did what, when, including calls to Amazon Bedrock.
AWS ConfigRecords how your AWS resources are configured and checks them against rules, to prove compliance.
- Amazon Bedrock Model EvaluationRun automatic, human or LLM-as-a-judge evaluation jobs on models, and evaluate knowledge bases.