ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept · Builds on 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.

You know from 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.
Read the Solutions Architect Associate lesson
  • 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.

What it is

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.

What it is

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.

What it is

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.

Remember

  • Training metrics come from a regular expression on the log, or from built-in algorithms.
  • Composite alarms need several signals at once.

On the exam

  • “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.