aws-observability
aws/agent-toolkit-for-aws
Builds, configures, debugs, and optimizes AWS observability using CloudWatch (Logs Insights, Metrics, Alarms, Dashboards, EMF), X-Ray, CloudTrail, and ADOT. Covers Log Insights query syntax (fields, filter, stats, parse, pattern, join, subqueries), alarm configuration (metric, composite, anomaly detection, missing data treatment), dashboard design, custom metrics (PutMetricData, EMF, metric filters), X-Ray tracing (ADOT, sampling rules, annotations vs metadata), ADOT collector config, and CloudT
...Expand allAbout aws-observability
AWS Observability provides domain expertise for building, configuring, debugging, and optimizing observability on AWS across metrics, logs, and traces. It covers CloudWatch platform capabilities — Logs Insights, Metrics, Alarms, Dashboards, and EMF — along with X-Ray tracing, CloudTrail operational auditing, and the AWS Distro for OpenTelemetry (ADOT) collector. Specific areas include Log Insights query syntax (fields, filter, stats, parse, pattern, join, subqueries), alarm configuration (metric, composite, anomaly detection, missing-data treatment), dashboard design, custom metrics via PutMetricData, EMF, and metric filters, plus X-Ray sampling rules and the distinction between annotations and metadata.
Use this skill when a task mentions CloudWatch, Log Insights, alarms, INSUFFICIENT_DATA, dashboards, custom metrics, EMF, X-Ray, traces, sampling, CloudTrail, "who deleted," ADOT, OpenTelemetry, observability, monitoring, synthetics, canaries, or troubleshooting alarm behavior. It explicitly does not cover application logging setup, container log drivers, or security threat detection. It works best alongside the AWS MCP server, which lets the agent run CLI commands, query CloudWatch, and validate configurations directly, though all guidance also applies with standard AWS CLI access.
The skill is organized as a routing table that maps each user need to a specific reference file: log-insights.md for queries, alarms.md for alarm configuration and defaults, metrics.md for custom metrics and EMF, tracing.md for X-Ray and ADOT, dashboards.md for widget design and cross-account/region sharing, troubleshooting.md (which opens with the five most common fixes), synthetics.md for canary constraints and common failures, and cloudtrail.md for operational auditing with S3 and Athena. Two ready-to-use assets are included: alarm-template.ts, a best-practice CDK template for Lambda monitoring with alarms and a dashboard, and otel-config.yaml, an ADOT collector configuration for X-Ray traces plus CloudWatch EMF metrics. Because reference files contain runtime versions, quota values, and feature matrices that change, the skill advises confirming precision-sensitive values against current AWS documentation before relying on them in production.
FAQ
Which AWS services does this skill cover?
It covers CloudWatch (Logs Insights, Metrics, Alarms, Dashboards, EMF), X-Ray tracing, CloudTrail operational auditing, and the ADOT (OpenTelemetry) collector across metrics, logs, and traces.
When should I not use this skill?
Do not use it for application logging setup, container log drivers, or security threat detection. Those areas are explicitly out of scope.
Do I need the AWS MCP server to use it?
No. It works best with the AWS MCP server, which allows running CLI commands and validating configurations directly, but all guidance also works with standard AWS CLI access.
Where do I look to debug an alarm stuck in INSUFFICIENT_DATA?
Start with troubleshooting.md, which begins with the five most common fixes, and consult alarms.md for configuration details including missing-data treatment for metric, composite, and anomaly detection alarms.
Are there ready-made templates included?
Yes. It provides alarm-template.ts, a best-practice CDK template for Lambda monitoring with alarms and a dashboard, and otel-config.yaml, an ADOT collector config for X-Ray traces plus CloudWatch EMF metrics.
All Files
11 filesreferences/alarms.md10.9 KBViewreferences/log-insights.md6.9 KBViewreferences/tracing.md8.9 KBViewassets/alarm-template.ts3.9 KBViewreferences/cloudtrail.md3.9 KBViewreferences/metrics.md7.4 KBViewreferences/troubleshooting.md6.7 KBViewassets/otel-config.yaml1.4 KBViewreferences/dashboards.md5.8 KBViewreferences/synthetics.md6.5 KBViewSKILL.md4.1 KBViewOverview
Domain expertise for AWS observability across metrics, logs, and traces, covering the full lifecycle: enabling/onboarding a service to Application Signals using ADOT (AWS Distro for OpenTelemetry) auto-instrumentation SDKs and ServiceEvents — making the service show up in Application Signals — on EC2, ECS, EKS, and Lambda in Python, Node.js, Java, and .NET.
Works best with the AWS MCP server — enables running CLI commands, querying CloudWatch, and validating configurations directly. All guidance also works with standard AWS CLI access.
Note: Reference files contain specific runtime versions, quota values, and feature matrices that may change. When precision matters (e.g., deploying to production, choosing a runtime, or checking a quota), confirm values against current AWS documentation rather than relying solely on the values in these files.
Routing
| User need | Action |
|---|---|
| Enabling/onboarding a service to Application Signals (auto-instrumentation) | Read application-signals-onboarding.md |
| Propagating ServiceEvents git/deployment metadata through CI/CD | Read application-signals-cicd-metadata.md |
| Per-platform/per-language enablement steps | Read the matching references/appsignals-guides/<platform>-<language>.md (e.g. eks-python.md) |
| Writing Log Insights queries | Read log-insights.md |
| Configuring alarms (metric, composite, anomaly) | Read alarms.md |
| Publishing custom metrics or using EMF | Read metrics.md |
| Setting up X-Ray tracing or ADOT | Read tracing.md |
| Building dashboards | Read dashboards.md |
| Debugging observability issues | Read troubleshooting.md — starts with the 5 most common fixes |
| Debugging canary failures | Read synthetics.md — see Common failures table |
| CloudTrail operational auditing | Read cloudtrail.md |
| Setting up Lambda monitoring with CDK | Use alarm-template.ts as a starting point |
| Creating synthetic canaries | Read synthetics.md |
| Configuring ADOT collector | Use otel-config.yaml as a starting point |
| Debugging a running service with breakpoints/snapshots — Dynamic Instrumentation (modifies live services and capture live data) | Read dynamic-instrumentation.md in full before acting. Confirm with the user before any create/delete, and narrate before significant actions: observation → hypothesis → proposed action → expected result. Diagnosing running-service root cause from source/code inspection. Source inspection alone identifies hypotheses, not confirmed root causes. Keep suspected causes tentative until runtime evidence confirms them. |
| Spans multiple areas | Read the most specific reference first, then consult others as needed |
Files
| File | Content |
|---|---|
| application-signals-onboarding.md | Enable Application Signals auto-instrumentation: EKS add-on, CloudWatch Agent IAM, OTLP endpoints, ServiceEvents env vars, Dynamic Instrumentation — two-tier scope by platform/language |
| application-signals-cicd-metadata.md | ServiceEvents git & deployment metadata propagation through CI/CD (the 5 OTEL_AWS_SERVICE_EVENTS_* vars) |
references/appsignals-guides/ (e.g. eks-python.md) | 16 per-platform × per-language enablement guides (EC2/ECS/EKS/Lambda × Python/Node.js/Java/.NET) |
| alarms.md | Metric, composite, anomaly detection alarms — configuration, constraints, recommended defaults |
| log-insights.md | Complete query syntax, commands, functions, known issues, reusable query library |
| metrics.md | Custom metrics, EMF spec, metric filters, high-resolution, retention |
| tracing.md | X-Ray → ADOT migration, sampling rules, annotations vs metadata, collector config |
| dashboards.md | Widget types, cross-account/region, dynamic labels, sharing |
| troubleshooting.md | Error → cause → fix for all observability services |
| cloudtrail.md | Operational auditing, event types, S3+Athena queries |
| synthetics.md | Canary runtime/blueprint constraints, VPC networking, common failures |
| alarm-template.ts | Best-practice CDK Lambda monitoring (alarms + dashboard) |
| otel-config.yaml | ADOT collector config for X-Ray traces + CloudWatch EMF metrics |
| dynamic-instrumentation.md | Dynamic Instrumentation debugging loop — breakpoints/probes on live code, snapshot capture + correlation analysis, create/delete gating, snapshot PII handling. Runs via scripts/di_instrumentation.py + scripts/di_snapshots.py. |
All Files
0 filesInstall aws-observability
Download and extract the skill files to your .claude/skills/ directory.
Download ZIPClone the repository and copy the skill files to your project.
git clone https://github.com/aws/agent-toolkit-for-aws/blob/main/skills/core-skills/aws-observability/SKILL.md # Copy SKILL.md to your .claude/skills/ directory
Copy





Home
