概念 · 基于 SAA-C03
CloudWatch metrics and dashboards for ML
Know which endpoint and training metrics exist, where they live, and how to turn them into dashboards and alarms.
本课尚未翻译,暂以英文显示。
你在Solutions Architect Associate中已学过
- CloudWatch metrics, alarms and dashboards watch resources over time.
- Composite alarms combine alarms to cut noise.
- Custom metrics and metric filters turn your own numbers and log lines into metrics.
Invocations
- Namespace
- AWS/SageMaker
- Tells you
- Request volume
Invocation5XXErrors
- Namespace
- AWS/SageMaker
- Tells you
- Container or model failures
ModelLatency
- Namespace
- AWS/SageMaker
- Tells you
- Time inside the container
OverheadLatency
- Namespace
- AWS/SageMaker
- Tells you
- Time SageMaker adds
GPUUtilization
- Namespace
- Endpoint instance metrics
- Tells you
- Accelerator load
MemoryUtilization
- Namespace
- Endpoint instance metrics
- Tells you
- Memory pressure
| Metric | Namespace | Tells you |
|---|---|---|
| Invocations | AWS/SageMaker | Request volume |
| Invocation5XXErrors | AWS/SageMaker | Container or model failures |
| ModelLatency | AWS/SageMaker | Time inside the container |
| OverheadLatency | AWS/SageMaker | Time SageMaker adds |
| GPUUtilization | Endpoint instance metrics | Accelerator load |
| MemoryUtilization | Endpoint instance metrics | Memory pressure |
1 / 2
Invocations
- Namespace
- AWS/SageMaker
- Tells you
- Request volume
Invocation5XXErrors
- Namespace
- AWS/SageMaker
- Tells you
- Container or model failures
ModelLatency
- Namespace
- AWS/SageMaker
- Tells you
- Time inside the container
| Metric | Namespace | Tells you |
|---|---|---|
| Invocations | AWS/SageMaker | Request volume |
| Invocation5XXErrors | AWS/SageMaker | Container or model failures |
| ModelLatency | AWS/SageMaker | Time inside the container |
2 / 2
OverheadLatency
- Namespace
- AWS/SageMaker
- Tells you
- Time SageMaker adds
GPUUtilization
- Namespace
- Endpoint instance metrics
- Tells you
- Accelerator load
MemoryUtilization
- Namespace
- Endpoint instance metrics
- Tells you
- Memory pressure
| Metric | Namespace | Tells you |
|---|---|---|
| OverheadLatency | AWS/SageMaker | Time SageMaker adds |
| GPUUtilization | Endpoint instance metrics | Accelerator load |
| MemoryUtilization | Endpoint instance metrics | Memory pressure |
Training loss on a chart
- Metric definition with a regex
Your own business number
- Custom metric
One page for an endpoint
- CloudWatch dashboard
Fewer false alerts
- Composite alarm
Charts for managers
- AWS Quick
| Need | Use |
|---|---|
| Training loss on a chart | Metric definition with a regex |
| Your own business number | Custom metric |
| One page for an endpoint | CloudWatch dashboard |
| Fewer false alerts | Composite alarm |
| Charts for managers | AWS Quick |
是什么
Endpoint request metrics live in the AWS/SageMaker namespace: Invocations, Invocation4XXErrors, Invocation5XXErrors, InvocationsPerInstance, ModelLatency and OverheadLatency. ModelLatency (in microseconds) is the time the model container takes. OverheadLatency is the time SageMaker adds around it. Instance metrics live in /aws/sagemaker/Endpoints: CPUUtilization, MemoryUtilization, DiskUtilization, GPUUtilization and GPUMemoryUtilization. CPU and GPU values add up across cores and GPUs, so a 4-core instance can show up to 400 percent.
是什么
Training jobs send instance metrics too. To chart a training number such as validation loss, give the job a metric definition: a name and a regular expression that SageMaker AI applies to the container log. Built-in algorithms already define theirs. Otherwise publish a custom metric with PutMetricData or the embedded metric format.
是什么
A dashboard puts the metrics for one system on one page. A composite alarm fires only when, say, latency and 5XX errors rise together, which cuts false alerts. InvocationsPerInstance is the usual autoscaling target. For business users who want charts of cost, usage or model results, AWS Quick (formerly Amazon QuickSight) builds BI dashboards from S3, Athena or other sources.
要记住
- Training metrics come from a regular expression on the log, or from built-in algorithms.
- Composite alarms need several signals at once.
考试中
- “Chart the validation loss of a custom training script” points to a training metric definition with a regular expression.
- “Is the slowness in the model or in SageMaker?” points to ModelLatency compared with OverheadLatency.
- “Alert only when latency and errors rise together” points to a composite alarm.
- “Share model and cost reports with business users” points to AWS Quick.
别和这些弄混
- Monitoring workflows for errors and anomaliesRoute failures and odd metrics from pipelines, jobs and endpoints to the people who fix them.
- Logs and tracing to troubleshoot ML systemsRead the signal first: logs for container errors, traces for slow hops, CloudTrail for denied or failed API calls.
- CloudWatch generative AI observability and Bedrock metricsBedrock sends runtime metrics to CloudWatch on its own. Invocation logs need setup, and the dashboards read both.
本任务内容 · 4.2
- Inference instance families
- Inference Recommender and right-sizing
- CloudWatch metrics and dashboards for ML
- Logs and tracing to troubleshoot ML systems
- Capacity, quotas and throttling
- Cost tools, tags and spending limits
- Purchasing options for ML infrastructure
- FM inference costs and token monitoring
- Reducing FM usage cost