ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念 · 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.
Solutions Architect Associateのレッスンを読む
  • 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
The endpoint metrics worth knowing.

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

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
The endpoint metrics worth knowing.
  • 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
Pick the tool for the reporting need.

概要

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.