Setting the file. One moment.
Overview · AWS AI ML · aws/agent-toolkit-for-aws · Skills Docs
Issue No. 14 · AWS AI ML
↖ Back to the coverMessaging And Streaming Skills
Migration And Modernization Skills
Networking And Content Delivery Skills
Security And Identity Skills
Web And Mobile Development
120 chapters · 648 min
Collects diagnostic information from a SageMaker endpoint using documented AWS APIs. Returns endpoint status, CloudWatch metrics, and recent container logs for the agent to interpret.
ContentsBack to the top of the page 10
Setup DevOps Agent
24.7
Code Output Guide · references
RDS Oracle
AWS credentials configured with permissions described in minimum_iam_policy.md
The SDK environment has been verified (SDK version, region, execution role). If not done, activate the sdk-getting-started skill first.
Read-only : No mutations — only Describe, GetMetricData, and FilterLogEvents calls
Deterministic : No heuristics, no scoring, no classification
Graceful degradation : Each collection step is independent; failures in one do not block others
Agent interprets : The script collects facts; the agent provides interpretation and guidance
First-variant metrics only : Instance-level metrics (CPU, Memory, GPU) are collected for the first production variant only. For multi-variant endpoints, the agent should note this limitation when presenting results.
Reports endpoint issues, errors, or latency (inference-time problems)
Asks to check endpoint health, status, or metrics
Wants to debug inference failures or timeouts on a deployed endpoint
Reports a deployment failure (endpoint creation failed)
Asks about instance count, container logs, or resource utilization of an endpoint
Training job failures — use the finetuning skill instead. Training jobs and endpoints are separate SageMaker resources.
Listing, creating, updating, or deleting endpoints — this skill diagnoses existing endpoints, not endpoint lifecycle management.
Model deployment requests — use the model-deployment skill instead.
Scaling or capacity changes — this skill collects diagnostics, it does not modify endpoints.
Endpoint name : The SageMaker endpoint to diagnose
AWS region : The region where the endpoint is deployed
For this step, you need the endpoint name and AWS region :
Check conversation history — the user may have already mentioned the endpoint name or region.
Silently read project files (e.g., deployment notebooks, config files, sdk-getting-started output) for the region or endpoint name.
Only if still unknown, ask the user for the missing values.
⏸ Wait for user response if any values are missing.
Execute collect_diagnostics.py with the endpoint name and region. Do not create a notebook — run the script directly:
Endpoint status via DescribeEndpoint
CloudWatch metrics (invocations, errors, latency, utilization) for the last 5 minutes
Container logs from the last 15 minutes (up to 100 events)
references/endpoint-diagnostics/overview.md