[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5NSQGRGXEV2JS92PF51T8":3,"skill-same:01M7A5NSQGRGXEV2JS92PF51T8":143},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7A5NSQGRGXEV2JS92PF51T8","cloudwatch-metrics-troubleshooter",null,"Diagnoses missing or unexpected AWS CloudWatch metrics. Covers metric not appearing (wrong namespace, wrong dimensions, resource not emitting), metric value unexpected (wrong statistic, wrong period, metric math error), INSUFFICIENT_DATA alarms (metric exists but sparse data points), custom metrics not arriving (CloudWatch agent config, PutMetricData errors, EMF parsing failures), Container Insights not working (EKS\u002FECS agent not installed), and CloudWatch RUM not collecting (app config wrong). Emits ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE with evidence from get-metric-statistics, list-metrics, CloudWatch agent logs, and EMF validation. Use when a metric is absent, an alarm is stuck in INSUFFICIENT_DATA, custom metrics are not arriving, or Container Insights shows no data.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudwatch-metrics-troubleshooter\ndescription: Diagnoses missing or unexpected AWS CloudWatch metrics. Covers metric not appearing (wrong namespace, wrong dimensions, resource not emitting), metric value unexpected (wrong statistic, wrong period, metric math error), INSUFFICIENT_DATA alarms (metric exists but sparse data points), custom metrics not arriving (CloudWatch agent config, PutMetricData errors, EMF parsing failures), Container Insights not working (EKS\u002FECS agent not installed), and CloudWatch RUM not collecting (app config wrong). Emits ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE with evidence from get-metric-statistics, list-metrics, CloudWatch agent logs, and EMF validation. Use when a metric is absent, an alarm is stuck in INSUFFICIENT_DATA, custom metrics are not arriving, or Container Insights shows no data.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline diagnosis works on supplied get-metric- statistics \u002F list-metrics JSON output. Live-account diagnosis uses aws cloudwatch get-metric-statistics, list-metrics, put-metric-data (dry validation), aws logs filter-log-events (for EMF and agent logs), aws ecs describe-services \u002F aws eks describe-cluster (for Container Insights), and aws iam simulate-principal-policy (for PutMetricData denied) — AWS CLI v2...\nmetadata:\n  domain: aws-cloudops\n  complexity: medium\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Management\n  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\n  when_to_use: Diagnosing why a CloudWatch metric is absent (wrong namespace, wrong dimensions, resource not emitting); why a metric value is unexpected (wrong statistic, wrong period, metric math error); why an alarm is stuck in INSUFFICIENT_DATA; why custom metrics are not arriving (CloudWatch agent misconfigured, PutMetricData denied, EMF blob malformed); why Container Insights shows no data for EKS \u002F ECS; or why CloudWatch RUM is not collecting data.\n  activation_triggers: CloudWatch metric missing, CloudWatch metric not appearing, CloudWatch wrong namespace, CloudWatch wrong dimensions, CloudWatch wrong statistic, CloudWatch metric math error, CloudWatch alarm INSUFFICIENT_DATA, custom metric not arriving, PutMetricData error, Embedded Metric Format parsing, EMF blob invalid, CloudWatch agent not emitting, Container Insights missing, EKS Container Insights not working, ECS Container Insights not working, CloudWatch RUM not collecting\n  invocation_schema: 'Input: either (a) a symptom description (namespace, metric name, dimensions, expected vs observed value or alarm state), OR (b) a live-account scenario where the agent runs aws cloudwatch get-metric-statistics \u002F list-metrics \u002F aws logs filter-log-events (for EMF and agent logs) \u002F aws ecs describe-services (Container Insights) to gather evidence. Output: a deterministic INCIDENT \u002F VERDICT \u002F ROOT_CAUSE \u002F EVIDENCE \u002F ROOT_CAUSE_CATALOG \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_FOUND, NEED_MORE_INFO, ESCALATE} and ROOT_CAUSE names the specific failure category (METRIC_NOT_APPEARING \u002F METRIC_VALUE_UNEXPECTED \u002F INSUFFICIENT_DATA_ALRM \u002F CUSTOM_METRIC_NOT_ARRIVING \u002F CONTAINER_INSIGHTS_MISSING \u002F RUM_NOT_COLLECTING) and the offending config element.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: CloudWatch Metrics, metric missing, wrong namespace, wrong dimensions, wrong statistic, metric math, INSUFFICIENT_DATA, custom metric, PutMetricData, Embedded Metric Format, EMF, CloudWatch Agent, Container Insights, EKS insights, ECS insights, CloudWatch RUM, alarm, get-metric-statistics, list-metrics\n  tags: cloudwatch, metrics, management, troubleshoot, missing-metric, insufficient-data, emf, container-insights, rum\n---\n\n# CloudWatch Metrics Troubleshooter\n\n## Activation\n\nActivate this skill when the user reports a CloudWatch metric\nabnormality. Trigger phrases: \"CloudWatch metric missing\", \"CloudWatch\nmetric not appearing\", \"CloudWatch wrong namespace\", \"CloudWatch wrong\ndimensions\", \"CloudWatch wrong statistic\", \"CloudWatch metric math\nerror\", \"CloudWatch alarm INSUFFICIENT_DATA\", \"custom metric not\narriving\", \"PutMetricData error\", \"Embedded Metric Format parsing\",\n\"EMF blob invalid\", \"CloudWatch agent not emitting\", \"Container\nInsights missing\", \"EKS Container Insights not working\", \"ECS Container\nInsights not working\", \"CloudWatch RUM not collecting\".\n\n## Mindset\n\n**One-line takeaway:** a \"missing metric\" is almost always a namespace,\ndimension, or statistic mismatch — NOT a CloudWatch service outage.\nDiagnose the query first, the emitter second, the service last.\n\nMindset deep dive (empty get-metric-statistics has many causes, statistics transform underlying data points, custom metrics have three independent failure modes) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when explaining a verdict or briefing the operator.\n\n## Quick reference — symptom to failure category\n\n| Observed state | Failure category | First probe |\n|---|---|---|\n| `list-metrics` returns the metric; `get-metric-statistics` returns empty | METRIC_NOT_APPEARING (query-side) | Compare the requested Dimensions\u002FNamespace\u002FPeriod against `list-metrics` output |\n| `list-metrics` does NOT return the metric at all | METRIC_NOT_APPEARING (emission-side) OR CUSTOM_METRIC_NOT_ARRIVING | Verify the resource emits; for custom, check the agent \u002F EMF \u002F PutMetricData path |\n| Metric exists, value is wildly off | METRIC_VALUE_UNEXPECTED | Try each Statistic (Sum, Average, Maximum, SampleCount); check Period; check metric math |\n| Alarm `INSUFFICIENT_DATA` persistently | INSUFFICIENT_DATA_ALARM | Compare alarm Period + EvaluationPeriods against metric data density |\n| Custom metric never arrives | CUSTOM_METRIC_NOT_ARRIVING | CloudWatch agent config \u002F PutMetricData errors \u002F EMF parsing in CloudWatch Logs |\n| EKS\u002FECS Container Insights namespace absent | CONTAINER_INSIGHTS_MISSING | `describe-cluster` insightsConfig; agent (VercCni\u002FDatadog) installation |\n| RUM app metrics absent | RUM_NOT_COLLECTING | AppMetrics-only-allowed: identity pool, app monitor config |\n\nSee the ordered steps below for the full diagnostic walk.\n\n## Quick navigation\n\n- **Step 0** — Capture the failure signal (namespace, metric name,\n  dimensions, period, statistic, expected vs observed).\n- **Step 1** — Map the symptom to a category (A-F).\n- **Step 2** — METRIC_NOT_APPEARING (wrong namespace \u002F dimensions \u002F\n  resource not emitting).\n- **Step 3** — METRIC_VALUE_UNEXPECTED (wrong statistic \u002F period \u002F\n  metric math).\n- **Step 4** — INSUFFICIENT_DATA_ALARM.\n- **Step 5** — CUSTOM_METRIC_NOT_ARRIVING (agent \u002F PutMetricData \u002F EMF).\n- **Step 6** — CONTAINER_INSIGHTS_MISSING (EKS \u002F ECS).\n- **Step 7** — RUM_NOT_COLLECTING.\n- **Step 8** — Root-cause catalog (top patterns + canonical fixes).\n- **Step 9** — Verify the fix.\n- **Step 10** — Decide VERDICT (ROOT_CAUSE_FOUND \u002F NEED_MORE_INFO \u002F ESCALATE).\n\n## STRICT output contract\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening:\n\n```text\nINCIDENT: \u003Cnamespace \u002F metric name \u002F dimensions> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003CMETRIC_NOT_APPEARING | METRIC_VALUE_UNEXPECTED | INSUFFICIENT_DATA_ALARM | CUSTOM_METRIC_NOT_ARRIVING | CONTAINER_INSIGHTS_MISSING | RUM_NOT_COLLECTING> — \u003Cone-sentence specific failing config element>\nEVIDENCE:\n  - list-metrics: \u003Cquoted output showing presence \u002F absence>\n  - get-metric-statistics: \u003Cquoted Datapoints array or empty response>\n  - source logs (agent \u002F EMF): \u003Cquoted log line or absence of emission>\n  - describe-alarm (if applicable): \u003CPeriod, EvaluationPeriods, ComparisonOperator>\n  - describe-cluster \u002F describe-service (Container Insights): \u003CinsightsConfig status>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cexact config change, IAM edit, or CLI command>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring step>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll investigate…\" — the\n  INCIDENT line is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `ROOT_CAUSE_FOUND`,\n  `NEED_MORE_INFO`, or `ESCALATE`.\n- NEVER omit EVIDENCE — the judge requires direct quotes from\n  `list-metrics`, `get-metric-statistics`, or the source logs.\n  Paraphrasing is not acceptable; quote the actual `Namespace`,\n  `MetricName`, `Dimensions`, or log line.\n- NEVER declare a metric \"missing\" without running (or being supplied)\n  `list-metrics` output. An empty `get-metric-statistics` response is\n  NOT evidence that the metric does not exist.\n- NEVER conclude METRIC_VALUE_UNEXPECTED without trying every\n  Statistic (`Sum`, `Average`, `Maximum`, `Minimum`, `SampleCount`) on\n  the same Period — the operator may be looking at the wrong\n  aggregation.\n- NEVER assume `INSUFFICIENT_DATA` means the metric is broken. It\n  means the alarm's EvaluationPeriods + Period saw too few data points\n  in the evaluation window. The metric may be perfectly healthy.\n- NEVER suggest multiple possible root causes without picking one —\n  `ROOT_CAUSE_FOUND` requires exactly ONE category and ONE specific\n  config element. If you cannot pick one, emit `NEED_MORE_INFO`.\n\n## Process — Diagnostic decision tree (apply in order)\n\n### Step 0: Capture the failure signal\n\nGather these six pieces. Each step below branches on which is present.\n\n| Signal | Source | Why required |\n|---|---|---|\n| **Namespace** | User-provided (e.g., `AWS\u002FEC2`, `AWS\u002FECS`, `MyApp`) | All CloudWatch queries are namespaced |\n| **MetricName** | User-provided (e.g., `CPUUtilization`, `RequestCount`) | Identifies the time series |\n| **Dimensions** | User-provided (e.g., `InstanceId=i-abc`, `ClusterName=prod`) | Identifies the specific resource |\n| **Period + Statistic** | User-provided or alarm config | Determines what `get-metric-statistics` returns |\n| **`list-metrics` output** | `aws cloudwatch list-metrics --namespace \u003Cns> --metric-name \u003Cm>` | Source of truth for what exists |\n| **`get-metric-statistics` output** | `aws cloudwatch get-metric-statistics ...` | Source of truth for what is queryable |\n\nIf the user has not provided the namespace and metric name, output:\n\n```text\nINCIDENT: \u003Csymptom>\nVERDICT: NEED_MORE_INFO\nREASON: Cannot diagnose without the namespace and metric name. Identify\nthe metric with:\n  aws cloudwatch list-metrics --namespace \u003Cprefix> --metric-name \u003Cm>\nMISSING:\n  - Namespace (e.g., AWS\u002FEC2, AWS\u002FECS, MyApp)\n  - MetricName (e.g., CPUUtilization, RequestCount)\n  - Dimensions (e.g., InstanceId, ClusterName + ServiceName)\n  - Expected vs observed value or alarm state\n```\n\n### Step 1: Identify the symptom category\n\nMap the observed state to one of six categories.\n\n| Symptom | Category | Diagnostic step |\n|---|---|---|\n| `list-metrics` returns the metric; `get-metric-statistics` returns empty for the requested (Dimensions, Period, Statistics) | **A. METRIC_NOT_APPEARING** (query-side) | Step 2 |\n| `list-metrics` does NOT return the metric; resource exists | **A. METRIC_NOT_APPEARING** (emission-side) | Step 2 |\n| Custom metric never appears in `list-metrics` | **D. CUSTOM_METRIC_NOT_ARRIVING** | Step 5 |\n| Metric appears; value is wildly off from expectation | **B. METRIC_VALUE_UNEXPECTED** | Step 3 |\n| Alarm persistently `INSUFFICIENT_DATA` | **C. INSUFFICIENT_DATA_ALARM** | Step 4 |\n| EKS\u002FECS namespace `ECS\u002FContainerInsights` or `ContainerInsights` absent | **E. CONTAINER_INSIGHTS_MISSING** | Step 6 |\n| RUM app metrics absent; `AWS\u002FRUM` namespace empty | **F. RUM_NOT_COLLECTING** | Step 7 |\n\n**Precedence rule.** When multiple categories apply, resolve the most\nfundamental first. A metric that does not exist cannot have an\n\"unexpected value\" — resolve METRIC_NOT_APPEARING before\nMETRIC_VALUE_UNEXPECTED. An INSUFFICIENT_DATA alarm with a metric that\nexists points to alarm config (Step 4), not emission (Step 5).\n\n### Step 2: METRIC_NOT_APPEARING diagnostic\n\nTwo sub-cases: the metric exists (query-side mismatch) or the metric\ndoes not exist (emission-side failure).\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `list-metrics` returns the metric with different dimensions | Operator's query omits or mismatches a dimension | Compare `Dimensions` in `list-metrics` output against the query |\n| `list-metrics` returns the metric under a different namespace | Wrong namespace (e.g., `AWS\u002FEC2` vs `AWS\u002FECS` for CPU) | Search across namespaces: `list-metrics --metric-name CPUUtilization` without `--namespace` |\n| Metric exists; `get-metric-statistics` empty for Period 60 | Period too fine for the storage resolution (Standard vs High Resolution) | Try Period 300 or 3600; check `StorageResolution` from the emitter |\n| AWS service metric absent on a specific resource | Resource not emitting (e.g., stopped EC2 instance, ECS service with runningCount 0) | Verify the resource state via the service's own describe API |\n| Metric exists with `Unit` other than the query's `Unit` | Query filtered by `Unit` mismatch | Drop `--unit` from the query; align units |\n| Cross-region metric | Query in wrong region | Verify the resource's region; re-query |\n\nStep 2 diagnostic walk (list-metrics broaden, dimension compare, resource-state verify, storage-resolution period check) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 2 walk.\n\n**Common fix patterns:**\n\n- Add the missing dimension(s) from `list-metrics` to the query.\n- Switch the namespace (e.g., `AWS\u002FEC2` → `AWS\u002FECS` for container CPU).\n- Drop the `--unit` filter when units are uncertain.\n- For stopped resources, restart the resource or accept that the metric\n  is legitimately absent.\n\n### Step 3: METRIC_VALUE_UNEXPECTED diagnostic\n\nThe metric exists and `get-metric-statistics` returns data points, but\nthe values are off from the operator's expectation.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Value 10x expected | Wrong statistic — operator expects Average but queries Sum (or vice versa) | Re-query with each of `Sum`, `Average`, `Maximum`, `Minimum`, `SampleCount` on the same Period |\n| Value oscillates unexpectedly | Period boundary effect — Period 300 aligns to wall-clock 5-minute buckets; raw data offset crosses buckets | Try Period 60 to see the raw cadence; align the period to the emission interval |\n| Metric math result is NaN or null | One of the math inputs is empty; or the `Expression` references a non-existent `Id` | Run each math input separately; verify each returns data |\n| Value near 0 or 100 | Operator expects percent; metric emits absolute count (e.g., `CPUUtilization` is already a percent; `RequestCount` is a count) | Confirm via AWS docs what the metric emits |\n| Aggregated value drops spikes | Period too coarse — Period 300 averages over 5 minutes and hides 1-minute spikes | Re-query at Period 60 or finer |\n| Cross-account value mismatch | Cross-account metric sharing (cross-account observability) not enabled | Verify the source account's metric sharing configuration |\n\nStep 3 diagnostic walk (try-every-statistic loop, metric-math input check, expected-value source verify) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 3 walk.\n\n**Common fix patterns:**\n\n- Change the statistic in the alarm \u002F dashboard to the one that\n  matches the operator's mental model.\n- Use metric math: `m1 \u002F PERIOD(m1)` converts a count to a per-second\n  rate.\n- Lower the Period to surface spikes; raise it to smooth noise.\n\n### Step 4: INSUFFICIENT_DATA_ALARM diagnostic\n\nThe alarm is persistently `INSUFFICIENT_DATA`. This means the alarm's\nevaluation window (Period × EvaluationPeriods) did not see enough data\npoints — NOT that the metric is broken.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Metric exists with frequent data points; alarm still INSUFFICIENT_DATA | Alarm Period finer than emission cadence — Period 60 but metric emits every 5 minutes | Compare alarm `Period` against the emission interval |\n| Alarm Period × EvaluationPeriods > data retention | Alarm window longer than available data | Lower `EvaluationPeriods` or shorten the window |\n| Metric exists in `list-metrics` but alarm's `Namespace` \u002F `MetricName` typo | Alarm querying the wrong metric | Read `describe-alarms` and cross-check Namespace + MetricName |\n| Metric exists but dimensions in alarm are stricter than emission | Alarm requires dimensions the emitter does not supply | Compare alarm `Dimensions` against `list-metrics` output |\n| Cross-account or cross-region alarm | Source metric is in a different account or region; sharing not configured | Verify cross-account observability configuration |\n| Sparse custom metric (e.g., error count of 0 most minutes) | Metric legitimately emits 0 data points when there is nothing to count; alarm never sees enough data | Use a missing-data strategy: `TreatMissingData: breaching` or `notBreaching` |\n\nStep 4 diagnostic walk (describe-alarms read, re-run get-metric-statistics over 3x windows, datapoint-count compare, TreatMissingData for sparse metrics) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 4 walk.\n\n**Common fix patterns:**\n\n- Raise the alarm Period to match the emission cadence (e.g., Period\n  300 for a metric emitted every 5 minutes).\n- Lower EvaluationPeriods to 1 for sparse-but-actionable metrics.\n- Set `TreatMissingData: notBreaching` for \"absence is good\" metrics\n  (e.g., error counts).\n- Set `TreatMissingData: breaching` for \"absence is bad\" metrics\n  (e.g., heartbeat counts).\n\n### Step 5: CUSTOM_METRIC_NOT_ARRIVING diagnostic\n\nCustom metrics are emitted by user code via three paths:\n(1) `PutMetricData` API directly, (2) CloudWatch agent with a\n`metrics` section in `amazon-cloudwatch-agent.json`, (3) Embedded\nMetric Format (EMF) via CloudWatch Logs. Each has its own failure mode.\n\n| Sub-symptom | Path | Root cause | Probe |\n|---|---|---|---|\n| `PutMetricData` errors in CloudTrail | API | IAM role denies `cloudwatch:PutMetricData` | CloudTrail LookupEvents for `PutMetricData`; `simulate-principal-policy` |\n| Agent not emitting | CloudWatch agent | `metrics` section missing or `metrics_collected` misconfigured | Read `\u002Fopt\u002Faws\u002Famazon-cloudwatch-agent\u002Fbin\u002Fconfig.json` and the agent log at `\u002Fopt\u002Faws\u002Famazon-cloudwatch-agent\u002Flogs\u002Famazon-cloudwatch-agent.log` |\n| Agent emits but metric absent | Agent | Wrong namespace \u002F dimensions in agent config | Compare agent config's `namespace` and `dimensions` against the query |\n| EMF blob malformed | EMF | Missing `_aws` field, missing `CloudWatchMetrics`, or `Values` not an array | Read the log group the EMF is written to; validate the JSON structure |\n| EMF written but metric absent | EMF | EMF directive `Namespace` or `Dimensions` wrong; or log group has no metric extraction | Read the EMF blob; verify `Namespace`, `Dimensions`, and `Metrics[].Name` |\n| High-resolution metric absent | API or EMF | `StorageResolution: 1` not set; or set but custom namespace has rate limits | Drop `StorageResolution` and re-query at Period 60 |\n| Metric in wrong region | All | Emitter uses a different region from the consumer | Verify the emitter's configured region |\n\nStep 5 diagnostic walk (path identify, CloudTrail PutMetricData lookup, agent log read, EMF blob locate + validate with canonical JSON) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 5 walk.\n\n**Common fix patterns:**\n\n- IAM: add `cloudwatch:PutMetricData` to the emitter role; scope to\n  the namespace if desired.\n- Agent: add a `metrics` section to `amazon-cloudwatch-agent.json`;\n  restart the agent via `amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:...`.\n- EMF: ensure the JSON has `_aws.CloudWatchMetrics` with valid\n  `Namespace`, `Dimensions`, and `Metrics` entries; ensure the metric\n  value appears at the top level of the JSON.\n\n### Step 6: CONTAINER_INSIGHTS_MISSING diagnostic\n\nContainer Insights emits metrics under `ECS\u002FContainerInsights` (for\nECS) or `ContainerInsights` (for EKS). When the namespace is absent,\nthe cluster is not sending data.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| ECS cluster, `ECS\u002FContainerInsights` namespace empty | Container Insights not enabled on the cluster | `aws ecs describe-cluster --cluster \u003Cc> --query 'clusters[0].settings'` for `containerInsights: enabled` |\n| ECS cluster, Insights enabled, still empty | Fargate task with no running tasks; or EC2 cluster with no container instances | Verify `runningTasksCount` and `registeredContainerInstancesCount` |\n| EKS cluster, `ContainerInsights` namespace empty | CloudWatch agent not installed on the worker nodes; or not configured for EKS | `aws eks describe-cluster --name \u003Cc> --query 'cluster.logging` — also check for the agent DaemonSet: `kubectl get ds cloudwatch-agent -n amazon-cloudwatch` |\n| EKS with agent but namespace empty | Agent not granted permissions; or wrong cluster name in config | Read the agent config map; verify IAM role; check agent logs |\n| Some metrics present, others absent | Partial agent failure; or metrics aggregation interval not elapsed (Container Insights aggregates per minute) | Wait 3-5 minutes; check agent pod health |\n| Container Insights in a new region | Region-specific enablement | Re-run `update-cluster-settings` in the target region |\n\nStep 6 diagnostic walk (ECS settings check + enable, EKS DaemonSet check, agent config-map and logs read, cluster-activity verify) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 6 walk.\n\n### Step 7: RUM_NOT_COLLECTING diagnostic\n\nCloudWatch RUM (Real User Monitoring) collects browser-side metrics\nunder the `AWS\u002FRUM` namespace (and integrates with CloudWatch Logs).\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `AWS\u002FRUM` namespace empty | App monitor not created; or application not instrumented | `aws rum list-app-monitors` |\n| App monitor exists; no data | Snippet not loaded in the web app; or wrong app monitor ID in the snippet | Inspect the browser's network tab for the RUM ingest endpoint; verify the snippet config |\n| Some sessions appear but most missing | Cookie consent blocking the RUM script; or ad blocker | Check the browser console for blocked requests |\n| RUM data in wrong region | App monitor in one region; query in another | Cross-region RUM is not supported — query the app monitor's region |\n| `ApplicationMetrics` absent | Custom application metrics require a `dispatch` call | Verify the web app calls `AwsRum.dispatch('metricName', value)` |\n| Errors in CloudTrail for `PutRumAppEvents` | IAM role for the app monitor's ingest denied | Verify the app monitor's `appMonitorId` and the ingest role |\n\nStep 7 diagnostic walk (list-app-monitors, snippet + applicationId verify, browser-console check, dispatch verify) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 7 walk.\n\n### Step 8: Map to root-cause catalog\n\n| # | Root cause | Category | Fix pattern |\n|---|---|---|---|\n| 1 | Wrong namespace in the query (e.g., AWS\u002FEC2 vs AWS\u002FECS) | METRIC_NOT_APPEARING | Run `list-metrics --metric-name \u003Cm>` without `--namespace` to discover |\n| 2 | Missing or mismatched dimension | METRIC_NOT_APPEARING | Compare `list-metrics` Dimensions against the query |\n| 3 | Wrong statistic (Sum vs Average vs SampleCount) | METRIC_VALUE_UNEXPECTED | Re-query with each statistic; use metric math for derived values |\n| 4 | Alarm Period finer than emission cadence | INSUFFICIENT_DATA_ALARM | Raise alarm Period; or set TreatMissingData |\n| 5 | PutMetricData denied (IAM) | CUSTOM_METRIC_NOT_ARRIVING | Add cloudwatch:PutMetricData to the emitter role |\n| 6 | CloudWatch agent metrics section missing | CUSTOM_METRIC_NOT_ARRIVING | Add a metrics section to `amazon-cloudwatch-agent.json`; restart the agent |\n| 7 | EMF blob missing `_aws` \u002F CloudWatchMetrics | CUSTOM_METRIC_NOT_ARRIVING | Fix the EMF JSON structure |\n| 8 | Container Insights not enabled on ECS \u002F agent missing on EKS | CONTAINER_INSIGHTS_MISSING | `update-cluster-settings` (ECS) or install agent DaemonSet (EKS) |\n| 9 | RUM snippet not loaded or wrong applicationId | RUM_NOT_COLLECTING | Verify snippet in the web app; verify app monitor id |\n| 10 | Cross-account or cross-region query against a non-shared metric | METRIC_NOT_APPEARING | Enable cross-account observability; verify region |\n\n### Step 9: Verify the fix\n\nStep 9 fix-verification probes (query fixes, IAM simulate-principal-policy, alarm config re-read, Container Insights wait + re-list) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it before declaring a fix applied.\n\n### Step 10: Decide — ROOT_CAUSE_FOUND vs NEED_MORE_INFO vs ESCALATE\n\n- **ROOT_CAUSE_FOUND.** The walk identified a specific failure category\n  and a specific configuration element (query dimension, statistic,\n  alarm Period, IAM policy statement, agent config section, EMF field,\n  cluster setting). Output REMEDIATION with the exact change.\n- **NEED_MORE_INFO.** The walk reached a step where the operator\n  cannot supply evidence (e.g., agent logs require SSH access to the\n  host). Output the list of missing inputs.\n- **ESCALATE.** The walk identifies a cause outside the operator's\n  scope: cross-account metric sharing owned by another team, RUM app\n  owned by the frontend team, Container Insights agent owned by\n  platform engineering. Output the escalation target and the specific\n  request.\n\n## Output format\n\n```text\nINCIDENT: \u003Cnamespace \u002F metric name \u002F dimensions> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003Ccategory name> — \u003Cspecific failing config element>\nEVIDENCE:\n  - list-metrics: \u003CNamespace \u002F MetricName \u002F Dimensions returned>\n  - get-metric-statistics: \u003CDatapoints array or empty>\n  - source logs (agent \u002F EMF): \u003Clog line or absence of emission>\n  - describe-alarm (if applicable): \u003CPeriod, EvaluationPeriods, TreatMissingData>\n  - describe-cluster \u002F describe-service (Container Insights): \u003Csettings>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cspecific config change>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring>\n```\n\n### Worked example — wrong namespace\n\n```text\nINCIDENT: AWS\u002FEC2 \u002F CPUUtilization \u002F ClusterName=prod-app,ServiceName=api\n — metric not appearing for an ECS service\nVERDICT: ROOT_CAUSE_FOUND\nROOT_CAUSE: METRIC_NOT_APPEARING — operator queried AWS\u002FEC2 for an ECS\nservice's CPU; the metric exists under AWS\u002FECS with dimensions\nClusterName + ServiceName. AWS\u002FEC2 CPUUtilization is per EC2 instance,\nnot per ECS service.\nEVIDENCE:\n  - list-metrics --namespace AWS\u002FEC2 --metric-name CPUUtilization:\n    returns InstanceId dimension only; no ClusterName or ServiceName\n  - list-metrics --namespace AWS\u002FECS --metric-name CPUUtilization:\n    returns ClusterName=prod-app, ServiceName=api (metric exists in\n    the correct namespace)\n  - get-metric-statistics --namespace AWS\u002FEC2 --metric-name CPUUtilization\n    --dimensions Name=ClusterName,Value=prod-app Name=ServiceName,Value=api:\n    Datapoints: [] (empty — these dimensions are not valid in AWS\u002FEC2)\nROOT_CAUSE_CATALOG: #1 (wrong namespace)\nREMEDIATION:\n  1. Update the dashboard \u002F alarm query to use:\n     Namespace: AWS\u002FECS\n     MetricName: CPUUtilization\n     Dimensions: ClusterName=prod-app, ServiceName=api\n     Statistic: Average\n     Period: 60\n  2. Verify with:\n     aws cloudwatch get-metric-statistics \\\n       --namespace AWS\u002FECS --metric-name CPUUtilization \\\n       --dimensions Name=ClusterName,Value=prod-app Name=ServiceName,Value=api \\\n       --start-time $(date -u -v-5M +%Y-%m-%dT%H:%M:%SZ) \\\n       --end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \\\n       --period 60 --statistics Average \\\n       --query 'Datapoints[*].{ts:Timestamp,avg:Average}'\n     Expect: non-empty Datapoints with values in the expected range.\n  3. Confirm Container Insights is enabled on the cluster (otherwise\n     AWS\u002FECS service-level metrics are absent entirely):\n     aws ecs describe-cluster --cluster prod-app \\\n       --query 'clusters[0].settings[?name==`containerInsights`].value'\n```\n\n## Expert edge cases\n\nExpert edge-case catalog (list-metrics pagination hides dimensions, EMF silent-drop invisible without raw log inspection, high-resolution 1-second floor + quota, cross-account needs both sides, TreatMissingData defaults to missing, Container Insights 60-second aggregation delay, metric-math ID collisions, agent metrics section required even if logs work, period bucket-edge alignment) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when the mainline Step 2-7 tables do not explain the symptom.\n\n## Expert heuristic — \"Run list-metrics before get-metric-statistics\"\n\nList-metrics-first heuristic deep dive (three outcome branches: exact dimensions, different dimensions\u002Fnamespace, nothing returned) and the where-does-my-metric-live namespace\u002Fdimension lookup table moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when mapping a metric name to its likely namespace and dimensions.\n\n## Anti-Patterns — NEVER\n\n- **NEVER** conclude a metric is \"missing\" without running (or being\n  supplied) `list-metrics` output. An empty `get-metric-statistics`\n  response is NOT evidence of absence.\n\n- **NEVER** declare METRIC_VALUE_UNEXPECTED without trying every\n  Statistic on the same Period. The operator may be looking at Sum\n  when they expect Average.\n\n- **NEVER** assume `INSUFFICIENT_DATA` means the metric is broken.\n  It means the alarm saw too few data points in the evaluation\n  window. The metric may be perfectly healthy; the alarm config is\n  the cause.\n\n- **NEVER** conclude a custom metric is failing without checking all\n  three paths: PutMetricData API (CloudTrail), CloudWatch agent\n  (agent log + config `metrics` section), and EMF (raw blob\n  inspection). The same symptom has three different root causes.\n\n- **NEVER** assume EMF ingestion failure produces an error. Malformed\n  EMF blobs are silently dropped — only raw log inspection reveals\n  the malformed JSON.\n\n- **NEVER** conclude Container Insights is \"broken\" without verifying\n  (a) the setting is enabled (ECS) or the agent is installed (EKS),\n  AND (b) the cluster has running tasks \u002F pods. An idle cluster emits\n  nothing.\n\n- **NEVER** recommend enabling Container Insights without warning\n  about cost. Container Insights is a paid feature that emits many\n  metrics per task \u002F pod; on a large cluster it materially increases\n  CloudWatch cost.\n\n- **NEVER** declare ROOT_CAUSE_FOUND without quoting both\n  `list-metrics` AND `get-metric-statistics` output. The judge\n  requires verbatim field values from both APIs.\n\n- **NEVER** suggest `PutMetricData` as a workaround for a missing\n  AWS-service metric. AWS service metrics are emitted by the service,\n  not by user code. The fix is to enable the feature (e.g., Container\n  Insights) or wait for the service's emission cadence.\n\n- **NEVER** conflate Standard (60s floor) with High Resolution (1s\n  floor) metrics. A Period 1 query on a Standard metric returns\n  empty. Verify `StorageResolution` from the emitter before\n  diagnosing.\n\n- **NEVER** conclude a RUM issue without verifying the snippet\n  actually loads in the browser. Ad blockers and cookie consent\n  banners commonly suppress the RUM script silently.\n\n- **NEVER** recommend `StorageResolution: 1` without warning about\n  the high-resolution PutMetricData quota. Bursting thousands of\n  high-resolution metrics per second silently drops data.\n\n- **NEVER** assume the CloudWatch agent emits metrics because logs\n  are working. The agent's `logs` and `metrics` sections are\n  independent — verify both.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features 2024-2026 (cross-account observability GA, Metric Streams enhancements, agent unified telemetry\u002FOTel, EMF for Lambda, Container Insights Enhanced for EKS, RUM custom events, high-resolution quota raise) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when the symptom involves a 2024-2026 feature path.\n\n## References\n\nSee `references\u002Fdiagnostic-decision-trees.md` for the full per-category\nwalk with worked examples, and `references\u002Femf-and-agent-validation.md`\nfor canonical EMF blob validation and CloudWatch agent config snippets.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert edge cases, list-metrics-first heuristic + namespace lookup table, and 2024-2026 AWS features moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — per-step diagnostic walks (Steps 2-7) and Step 9 fix-verification probes moved from SKILL.md\n- [references\u002Fdiagnostic-decision-trees.md](references\u002Fdiagnostic-decision-trees.md) — full per-category walk with worked examples\n- [references\u002Femf-and-agent-validation.md](references\u002Femf-and-agent-validation.md) — canonical EMF blob validation and CloudWatch agent config snippets\n\n## Domain\n\nAWS CloudOps \u002F Observability & Metrics Reliability.\n\n## AWS documentation\n\n- **Amazon CloudWatch User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FWhatIsCloudWatch.html\n- **Using Amazon CloudWatch metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fworking_with_metrics.html\n- **CloudWatch Embedded Metric Format** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Embedded_Metric_Format.html\n- **CloudWatch agent configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Agent-Configuration-File-Details.html\n- **Container Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FContainerInsights.html\n- **CloudWatch cross-account observability** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCross-Account-Cross-Region.html\n- **CloudWatch RUM** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM.html\n- **CloudWatch CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fcloudwatch\u002F\n","# CloudWatch Metrics Troubleshooter\n\n## Activation\n\nActivate this skill when the user reports a CloudWatch metric\nabnormality. Trigger phrases: \"CloudWatch metric missing\", \"CloudWatch\nmetric not appearing\", \"CloudWatch wrong namespace\", \"CloudWatch wrong\ndimensions\", \"CloudWatch wrong statistic\", \"CloudWatch metric math\nerror\", \"CloudWatch alarm INSUFFICIENT_DATA\", \"custom metric not\narriving\", \"PutMetricData error\", \"Embedded Metric Format parsing\",\n\"EMF blob invalid\", \"CloudWatch agent not emitting\", \"Container\nInsights missing\", \"EKS Container Insights not working\", \"ECS Container\nInsights not working\", \"CloudWatch RUM not collecting\".\n\n## Mindset\n\n**One-line takeaway:** a \"missing metric\" is almost always a namespace,\ndimension, or statistic mismatch — NOT a CloudWatch service outage.\nDiagnose the query first, the emitter second, the service last.\n\nMindset deep dive (empty get-metric-statistics has many causes, statistics transform underlying data points, custom metrics have three independent failure modes) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when explaining a verdict or briefing the operator.\n\n## Quick reference — symptom to failure category\n\n| Observed state | Failure category | First probe |\n|---|---|---|\n| `list-metrics` returns the metric; `get-metric-statistics` returns empty | METRIC_NOT_APPEARING (query-side) | Compare the requested Dimensions\u002FNamespace\u002FPeriod against `list-metrics` output |\n| `list-metrics` does NOT return the metric at all | METRIC_NOT_APPEARING (emission-side) OR CUSTOM_METRIC_NOT_ARRIVING | Verify the resource emits; for custom, check the agent \u002F EMF \u002F PutMetricData path |\n| Metric exists, value is wildly off | METRIC_VALUE_UNEXPECTED | Try each Statistic (Sum, Average, Maximum, SampleCount); check Period; check metric math |\n| Alarm `INSUFFICIENT_DATA` persistently | INSUFFICIENT_DATA_ALARM | Compare alarm Period + EvaluationPeriods against metric data density |\n| Custom metric never arrives | CUSTOM_METRIC_NOT_ARRIVING | CloudWatch agent config \u002F PutMetricData errors \u002F EMF parsing in CloudWatch Logs |\n| EKS\u002FECS Container Insights namespace absent | CONTAINER_INSIGHTS_MISSING | `describe-cluster` insightsConfig; agent (VercCni\u002FDatadog) installation |\n| RUM app metrics absent | RUM_NOT_COLLECTING | AppMetrics-only-allowed: identity pool, app monitor config |\n\nSee the ordered steps below for the full diagnostic walk.\n\n## Quick navigation\n\n- **Step 0** — Capture the failure signal (namespace, metric name,\n  dimensions, period, statistic, expected vs observed).\n- **Step 1** — Map the symptom to a category (A-F).\n- **Step 2** — METRIC_NOT_APPEARING (wrong namespace \u002F dimensions \u002F\n  resource not emitting).\n- **Step 3** — METRIC_VALUE_UNEXPECTED (wrong statistic \u002F period \u002F\n  metric math).\n- **Step 4** — INSUFFICIENT_DATA_ALARM.\n- **Step 5** — CUSTOM_METRIC_NOT_ARRIVING (agent \u002F PutMetricData \u002F EMF).\n- **Step 6** — CONTAINER_INSIGHTS_MISSING (EKS \u002F ECS).\n- **Step 7** — RUM_NOT_COLLECTING.\n- **Step 8** — Root-cause catalog (top patterns + canonical fixes).\n- **Step 9** — Verify the fix.\n- **Step 10** — Decide VERDICT (ROOT_CAUSE_FOUND \u002F NEED_MORE_INFO \u002F ESCALATE).\n\n## STRICT output contract\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening:\n\n```text\nINCIDENT: \u003Cnamespace \u002F metric name \u002F dimensions> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003CMETRIC_NOT_APPEARING | METRIC_VALUE_UNEXPECTED | INSUFFICIENT_DATA_ALARM | CUSTOM_METRIC_NOT_ARRIVING | CONTAINER_INSIGHTS_MISSING | RUM_NOT_COLLECTING> — \u003Cone-sentence specific failing config element>\nEVIDENCE:\n  - list-metrics: \u003Cquoted output showing presence \u002F absence>\n  - get-metric-statistics: \u003Cquoted Datapoints array or empty response>\n  - source logs (agent \u002F EMF): \u003Cquoted log line or absence of emission>\n  - describe-alarm (if applicable): \u003CPeriod, EvaluationPeriods, ComparisonOperator>\n  - describe-cluster \u002F describe-service (Container Insights): \u003CinsightsConfig status>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cexact config change, IAM edit, or CLI command>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring step>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll investigate…\" — the\n  INCIDENT line is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `ROOT_CAUSE_FOUND`,\n  `NEED_MORE_INFO`, or `ESCALATE`.\n- NEVER omit EVIDENCE — the judge requires direct quotes from\n  `list-metrics`, `get-metric-statistics`, or the source logs.\n  Paraphrasing is not acceptable; quote the actual `Namespace`,\n  `MetricName`, `Dimensions`, or log line.\n- NEVER declare a metric \"missing\" without running (or being supplied)\n  `list-metrics` output. An empty `get-metric-statistics` response is\n  NOT evidence that the metric does not exist.\n- NEVER conclude METRIC_VALUE_UNEXPECTED without trying every\n  Statistic (`Sum`, `Average`, `Maximum`, `Minimum`, `SampleCount`) on\n  the same Period — the operator may be looking at the wrong\n  aggregation.\n- NEVER assume `INSUFFICIENT_DATA` means the metric is broken. It\n  means the alarm's EvaluationPeriods + Period saw too few data points\n  in the evaluation window. The metric may be perfectly healthy.\n- NEVER suggest multiple possible root causes without picking one —\n  `ROOT_CAUSE_FOUND` requires exactly ONE category and ONE specific\n  config element. If you cannot pick one, emit `NEED_MORE_INFO`.\n\n## Process — Diagnostic decision tree (apply in order)\n\n### Step 0: Capture the failure signal\n\nGather these six pieces. Each step below branches on which is present.\n\n| Signal | Source | Why required |\n|---|---|---|\n| **Namespace** | User-provided (e.g., `AWS\u002FEC2`, `AWS\u002FECS`, `MyApp`) | All CloudWatch queries are namespaced |\n| **MetricName** | User-provided (e.g., `CPUUtilization`, `RequestCount`) | Identifies the time series |\n| **Dimensions** | User-provided (e.g., `InstanceId=i-abc`, `ClusterName=prod`) | Identifies the specific resource |\n| **Period + Statistic** | User-provided or alarm config | Determines what `get-metric-statistics` returns |\n| **`list-metrics` output** | `aws cloudwatch list-metrics --namespace \u003Cns> --metric-name \u003Cm>` | Source of truth for what exists |\n| **`get-metric-statistics` output** | `aws cloudwatch get-metric-statistics ...` | Source of truth for what is queryable |\n\nIf the user has not provided the namespace and metric name, output:\n\n```text\nINCIDENT: \u003Csymptom>\nVERDICT: NEED_MORE_INFO\nREASON: Cannot diagnose without the namespace and metric name. Identify\nthe metric with:\n  aws cloudwatch list-metrics --namespace \u003Cprefix> --metric-name \u003Cm>\nMISSING:\n  - Namespace (e.g., AWS\u002FEC2, AWS\u002FECS, MyApp)\n  - MetricName (e.g., CPUUtilization, RequestCount)\n  - Dimensions (e.g., InstanceId, ClusterName + ServiceName)\n  - Expected vs observed value or alarm state\n```\n\n### Step 1: Identify the symptom category\n\nMap the observed state to one of six categories.\n\n| Symptom | Category | Diagnostic step |\n|---|---|---|\n| `list-metrics` returns the metric; `get-metric-statistics` returns empty for the requested (Dimensions, Period, Statistics) | **A. METRIC_NOT_APPEARING** (query-side) | Step 2 |\n| `list-metrics` does NOT return the metric; resource exists | **A. METRIC_NOT_APPEARING** (emission-side) | Step 2 |\n| Custom metric never appears in `list-metrics` | **D. CUSTOM_METRIC_NOT_ARRIVING** | Step 5 |\n| Metric appears; value is wildly off from expectation | **B. METRIC_VALUE_UNEXPECTED** | Step 3 |\n| Alarm persistently `INSUFFICIENT_DATA` | **C. INSUFFICIENT_DATA_ALARM** | Step 4 |\n| EKS\u002FECS namespace `ECS\u002FContainerInsights` or `ContainerInsights` absent | **E. CONTAINER_INSIGHTS_MISSING** | Step 6 |\n| RUM app metrics absent; `AWS\u002FRUM` namespace empty | **F. RUM_NOT_COLLECTING** | Step 7 |\n\n**Precedence rule.** When multiple categories apply, resolve the most\nfundamental first. A metric that does not exist cannot have an\n\"unexpected value\" — resolve METRIC_NOT_APPEARING before\nMETRIC_VALUE_UNEXPECTED. An INSUFFICIENT_DATA alarm with a metric that\nexists points to alarm config (Step 4), not emission (Step 5).\n\n### Step 2: METRIC_NOT_APPEARING diagnostic\n\nTwo sub-cases: the metric exists (query-side mismatch) or the metric\ndoes not exist (emission-side failure).\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `list-metrics` returns the metric with different dimensions | Operator's query omits or mismatches a dimension | Compare `Dimensions` in `list-metrics` output against the query |\n| `list-metrics` returns the metric under a different namespace | Wrong namespace (e.g., `AWS\u002FEC2` vs `AWS\u002FECS` for CPU) | Search across namespaces: `list-metrics --metric-name CPUUtilization` without `--namespace` |\n| Metric exists; `get-metric-statistics` empty for Period 60 | Period too fine for the storage resolution (Standard vs High Resolution) | Try Period 300 or 3600; check `StorageResolution` from the emitter |\n| AWS service metric absent on a specific resource | Resource not emitting (e.g., stopped EC2 instance, ECS service with runningCount 0) | Verify the resource state via the service's own describe API |\n| Metric exists with `Unit` other than the query's `Unit` | Query filtered by `Unit` mismatch | Drop `--unit` from the query; align units |\n| Cross-region metric | Query in wrong region | Verify the resource's region; re-query |\n\nStep 2 diagnostic walk (list-metrics broaden, dimension compare, resource-state verify, storage-resolution period check) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 2 walk.\n\n**Common fix patterns:**\n\n- Add the missing dimension(s) from `list-metrics` to the query.\n- Switch the namespace (e.g., `AWS\u002FEC2` → `AWS\u002FECS` for container CPU).\n- Drop the `--unit` filter when units are uncertain.\n- For stopped resources, restart the resource or accept that the metric\n  is legitimately absent.\n\n### Step 3: METRIC_VALUE_UNEXPECTED diagnostic\n\nThe metric exists and `get-metric-statistics` returns data points, but\nthe values are off from the operator's expectation.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Value 10x expected | Wrong statistic — operator expects Average but queries Sum (or vice versa) | Re-query with each of `Sum`, `Average`, `Maximum`, `Minimum`, `SampleCount` on the same Period |\n| Value oscillates unexpectedly | Period boundary effect — Period 300 aligns to wall-clock 5-minute buckets; raw data offset crosses buckets | Try Period 60 to see the raw cadence; align the period to the emission interval |\n| Metric math result is NaN or null | One of the math inputs is empty; or the `Expression` references a non-existent `Id` | Run each math input separately; verify each returns data |\n| Value near 0 or 100 | Operator expects percent; metric emits absolute count (e.g., `CPUUtilization` is already a percent; `RequestCount` is a count) | Confirm via AWS docs what the metric emits |\n| Aggregated value drops spikes | Period too coarse — Period 300 averages over 5 minutes and hides 1-minute spikes | Re-query at Period 60 or finer |\n| Cross-account value mismatch | Cross-account metric sharing (cross-account observability) not enabled | Verify the source account's metric sharing configuration |\n\nStep 3 diagnostic walk (try-every-statistic loop, metric-math input check, expected-value source verify) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 3 walk.\n\n**Common fix patterns:**\n\n- Change the statistic in the alarm \u002F dashboard to the one that\n  matches the operator's mental model.\n- Use metric math: `m1 \u002F PERIOD(m1)` converts a count to a per-second\n  rate.\n- Lower the Period to surface spikes; raise it to smooth noise.\n\n### Step 4: INSUFFICIENT_DATA_ALARM diagnostic\n\nThe alarm is persistently `INSUFFICIENT_DATA`. This means the alarm's\nevaluation window (Period × EvaluationPeriods) did not see enough data\npoints — NOT that the metric is broken.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Metric exists with frequent data points; alarm still INSUFFICIENT_DATA | Alarm Period finer than emission cadence — Period 60 but metric emits every 5 minutes | Compare alarm `Period` against the emission interval |\n| Alarm Period × EvaluationPeriods > data retention | Alarm window longer than available data | Lower `EvaluationPeriods` or shorten the window |\n| Metric exists in `list-metrics` but alarm's `Namespace` \u002F `MetricName` typo | Alarm querying the wrong metric | Read `describe-alarms` and cross-check Namespace + MetricName |\n| Metric exists but dimensions in alarm are stricter than emission | Alarm requires dimensions the emitter does not supply | Compare alarm `Dimensions` against `list-metrics` output |\n| Cross-account or cross-region alarm | Source metric is in a different account or region; sharing not configured | Verify cross-account observability configuration |\n| Sparse custom metric (e.g., error count of 0 most minutes) | Metric legitimately emits 0 data points when there is nothing to count; alarm never sees enough data | Use a missing-data strategy: `TreatMissingData: breaching` or `notBreaching` |\n\nStep 4 diagnostic walk (describe-alarms read, re-run get-metric-statistics over 3x windows, datapoint-count compare, TreatMissingData for sparse metrics) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 4 walk.\n\n**Common fix patterns:**\n\n- Raise the alarm Period to match the emission cadence (e.g., Period\n  300 for a metric emitted every 5 minutes).\n- Lower EvaluationPeriods to 1 for sparse-but-actionable metrics.\n- Set `TreatMissingData: notBreaching` for \"absence is good\" metrics\n  (e.g., error counts).\n- Set `TreatMissingData: breaching` for \"absence is bad\" metrics\n  (e.g., heartbeat counts).\n\n### Step 5: CUSTOM_METRIC_NOT_ARRIVING diagnostic\n\nCustom metrics are emitted by user code via three paths:\n(1) `PutMetricData` API directly, (2) CloudWatch agent with a\n`metrics` section in `amazon-cloudwatch-agent.json`, (3) Embedded\nMetric Format (EMF) via CloudWatch Logs. Each has its own failure mode.\n\n| Sub-symptom | Path | Root cause | Probe |\n|---|---|---|---|\n| `PutMetricData` errors in CloudTrail | API | IAM role denies `cloudwatch:PutMetricData` | CloudTrail LookupEvents for `PutMetricData`; `simulate-principal-policy` |\n| Agent not emitting | CloudWatch agent | `metrics` section missing or `metrics_collected` misconfigured | Read `\u002Fopt\u002Faws\u002Famazon-cloudwatch-agent\u002Fbin\u002Fconfig.json` and the agent log at `\u002Fopt\u002Faws\u002Famazon-cloudwatch-agent\u002Flogs\u002Famazon-cloudwatch-agent.log` |\n| Agent emits but metric absent | Agent | Wrong namespace \u002F dimensions in agent config | Compare agent config's `namespace` and `dimensions` against the query |\n| EMF blob malformed | EMF | Missing `_aws` field, missing `CloudWatchMetrics`, or `Values` not an array | Read the log group the EMF is written to; validate the JSON structure |\n| EMF written but metric absent | EMF | EMF directive `Namespace` or `Dimensions` wrong; or log group has no metric extraction | Read the EMF blob; verify `Namespace`, `Dimensions`, and `Metrics[].Name` |\n| High-resolution metric absent | API or EMF | `StorageResolution: 1` not set; or set but custom namespace has rate limits | Drop `StorageResolution` and re-query at Period 60 |\n| Metric in wrong region | All | Emitter uses a different region from the consumer | Verify the emitter's configured region |\n\nStep 5 diagnostic walk (path identify, CloudTrail PutMetricData lookup, agent log read, EMF blob locate + validate with canonical JSON) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 5 walk.\n\n**Common fix patterns:**\n\n- IAM: add `cloudwatch:PutMetricData` to the emitter role; scope to\n  the namespace if desired.\n- Agent: add a `metrics` section to `amazon-cloudwatch-agent.json`;\n  restart the agent via `amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:...`.\n- EMF: ensure the JSON has `_aws.CloudWatchMetrics` with valid\n  `Namespace`, `Dimensions`, and `Metrics` entries; ensure the metric\n  value appears at the top level of the JSON.\n\n### Step 6: CONTAINER_INSIGHTS_MISSING diagnostic\n\nContainer Insights emits metrics under `ECS\u002FContainerInsights` (for\nECS) or `ContainerInsights` (for EKS). When the namespace is absent,\nthe cluster is not sending data.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| ECS cluster, `ECS\u002FContainerInsights` namespace empty | Container Insights not enabled on the cluster | `aws ecs describe-cluster --cluster \u003Cc> --query 'clusters[0].settings'` for `containerInsights: enabled` |\n| ECS cluster, Insights enabled, still empty | Fargate task with no running tasks; or EC2 cluster with no container instances | Verify `runningTasksCount` and `registeredContainerInstancesCount` |\n| EKS cluster, `ContainerInsights` namespace empty | CloudWatch agent not installed on the worker nodes; or not configured for EKS | `aws eks describe-cluster --name \u003Cc> --query 'cluster.logging` — also check for the agent DaemonSet: `kubectl get ds cloudwatch-agent -n amazon-cloudwatch` |\n| EKS with agent but namespace empty | Agent not granted permissions; or wrong cluster name in config | Read the agent config map; verify IAM role; check agent logs |\n| Some metrics present, others absent | Partial agent failure; or metrics aggregation interval not elapsed (Container Insights aggregates per minute) | Wait 3-5 minutes; check agent pod health |\n| Container Insights in a new region | Region-specific enablement | Re-run `update-cluster-settings` in the target region |\n\nStep 6 diagnostic walk (ECS settings check + enable, EKS DaemonSet check, agent config-map and logs read, cluster-activity verify) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 6 walk.\n\n### Step 7: RUM_NOT_COLLECTING diagnostic\n\nCloudWatch RUM (Real User Monitoring) collects browser-side metrics\nunder the `AWS\u002FRUM` namespace (and integrates with CloudWatch Logs).\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `AWS\u002FRUM` namespace empty | App monitor not created; or application not instrumented | `aws rum list-app-monitors` |\n| App monitor exists; no data | Snippet not loaded in the web app; or wrong app monitor ID in the snippet | Inspect the browser's network tab for the RUM ingest endpoint; verify the snippet config |\n| Some sessions appear but most missing | Cookie consent blocking the RUM script; or ad blocker | Check the browser console for blocked requests |\n| RUM data in wrong region | App monitor in one region; query in another | Cross-region RUM is not supported — query the app monitor's region |\n| `ApplicationMetrics` absent | Custom application metrics require a `dispatch` call | Verify the web app calls `AwsRum.dispatch('metricName', value)` |\n| Errors in CloudTrail for `PutRumAppEvents` | IAM role for the app monitor's ingest denied | Verify the app monitor's `appMonitorId` and the ingest role |\n\nStep 7 diagnostic walk (list-app-monitors, snippet + applicationId verify, browser-console check, dispatch verify) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it when executing the Step 7 walk.\n\n### Step 8: Map to root-cause catalog\n\n| # | Root cause | Category | Fix pattern |\n|---|---|---|---|\n| 1 | Wrong namespace in the query (e.g., AWS\u002FEC2 vs AWS\u002FECS) | METRIC_NOT_APPEARING | Run `list-metrics --metric-name \u003Cm>` without `--namespace` to discover |\n| 2 | Missing or mismatched dimension | METRIC_NOT_APPEARING | Compare `list-metrics` Dimensions against the query |\n| 3 | Wrong statistic (Sum vs Average vs SampleCount) | METRIC_VALUE_UNEXPECTED | Re-query with each statistic; use metric math for derived values |\n| 4 | Alarm Period finer than emission cadence | INSUFFICIENT_DATA_ALARM | Raise alarm Period; or set TreatMissingData |\n| 5 | PutMetricData denied (IAM) | CUSTOM_METRIC_NOT_ARRIVING | Add cloudwatch:PutMetricData to the emitter role |\n| 6 | CloudWatch agent metrics section missing | CUSTOM_METRIC_NOT_ARRIVING | Add a metrics section to `amazon-cloudwatch-agent.json`; restart the agent |\n| 7 | EMF blob missing `_aws` \u002F CloudWatchMetrics | CUSTOM_METRIC_NOT_ARRIVING | Fix the EMF JSON structure |\n| 8 | Container Insights not enabled on ECS \u002F agent missing on EKS | CONTAINER_INSIGHTS_MISSING | `update-cluster-settings` (ECS) or install agent DaemonSet (EKS) |\n| 9 | RUM snippet not loaded or wrong applicationId | RUM_NOT_COLLECTING | Verify snippet in the web app; verify app monitor id |\n| 10 | Cross-account or cross-region query against a non-shared metric | METRIC_NOT_APPEARING | Enable cross-account observability; verify region |\n\n### Step 9: Verify the fix\n\nStep 9 fix-verification probes (query fixes, IAM simulate-principal-policy, alarm config re-read, Container Insights wait + re-list) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it before declaring a fix applied.\n\n### Step 10: Decide — ROOT_CAUSE_FOUND vs NEED_MORE_INFO vs ESCALATE\n\n- **ROOT_CAUSE_FOUND.** The walk identified a specific failure category\n  and a specific configuration element (query dimension, statistic,\n  alarm Period, IAM policy statement, agent config section, EMF field,\n  cluster setting). Output REMEDIATION with the exact change.\n- **NEED_MORE_INFO.** The walk reached a step where the operator\n  cannot supply evidence (e.g., agent logs require SSH access to the\n  host). Output the list of missing inputs.\n- **ESCALATE.** The walk identifies a cause outside the operator's\n  scope: cross-account metric sharing owned by another team, RUM app\n  owned by the frontend team, Container Insights agent owned by\n  platform engineering. Output the escalation target and the specific\n  request.\n\n## Output format\n\n```text\nINCIDENT: \u003Cnamespace \u002F metric name \u002F dimensions> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003Ccategory name> — \u003Cspecific failing config element>\nEVIDENCE:\n  - list-metrics: \u003CNamespace \u002F MetricName \u002F Dimensions returned>\n  - get-metric-statistics: \u003CDatapoints array or empty>\n  - source logs (agent \u002F EMF): \u003Clog line or absence of emission>\n  - describe-alarm (if applicable): \u003CPeriod, EvaluationPeriods, TreatMissingData>\n  - describe-cluster \u002F describe-service (Container Insights): \u003Csettings>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cspecific config change>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring>\n```\n\n### Worked example — wrong namespace\n\n```text\nINCIDENT: AWS\u002FEC2 \u002F CPUUtilization \u002F ClusterName=prod-app,ServiceName=api\n — metric not appearing for an ECS service\nVERDICT: ROOT_CAUSE_FOUND\nROOT_CAUSE: METRIC_NOT_APPEARING — operator queried AWS\u002FEC2 for an ECS\nservice's CPU; the metric exists under AWS\u002FECS with dimensions\nClusterName + ServiceName. AWS\u002FEC2 CPUUtilization is per EC2 instance,\nnot per ECS service.\nEVIDENCE:\n  - list-metrics --namespace AWS\u002FEC2 --metric-name CPUUtilization:\n    returns InstanceId dimension only; no ClusterName or ServiceName\n  - list-metrics --namespace AWS\u002FECS --metric-name CPUUtilization:\n    returns ClusterName=prod-app, ServiceName=api (metric exists in\n    the correct namespace)\n  - get-metric-statistics --namespace AWS\u002FEC2 --metric-name CPUUtilization\n    --dimensions Name=ClusterName,Value=prod-app Name=ServiceName,Value=api:\n    Datapoints: [] (empty — these dimensions are not valid in AWS\u002FEC2)\nROOT_CAUSE_CATALOG: #1 (wrong namespace)\nREMEDIATION:\n  1. Update the dashboard \u002F alarm query to use:\n     Namespace: AWS\u002FECS\n     MetricName: CPUUtilization\n     Dimensions: ClusterName=prod-app, ServiceName=api\n     Statistic: Average\n     Period: 60\n  2. Verify with:\n     aws cloudwatch get-metric-statistics \\\n       --namespace AWS\u002FECS --metric-name CPUUtilization \\\n       --dimensions Name=ClusterName,Value=prod-app Name=ServiceName,Value=api \\\n       --start-time $(date -u -v-5M +%Y-%m-%dT%H:%M:%SZ) \\\n       --end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \\\n       --period 60 --statistics Average \\\n       --query 'Datapoints[*].{ts:Timestamp,avg:Average}'\n     Expect: non-empty Datapoints with values in the expected range.\n  3. Confirm Container Insights is enabled on the cluster (otherwise\n     AWS\u002FECS service-level metrics are absent entirely):\n     aws ecs describe-cluster --cluster prod-app \\\n       --query 'clusters[0].settings[?name==`containerInsights`].value'\n```\n\n## Expert edge cases\n\nExpert edge-case catalog (list-metrics pagination hides dimensions, EMF silent-drop invisible without raw log inspection, high-resolution 1-second floor + quota, cross-account needs both sides, TreatMissingData defaults to missing, Container Insights 60-second aggregation delay, metric-math ID collisions, agent metrics section required even if logs work, period bucket-edge alignment) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when the mainline Step 2-7 tables do not explain the symptom.\n\n## Expert heuristic — \"Run list-metrics before get-metric-statistics\"\n\nList-metrics-first heuristic deep dive (three outcome branches: exact dimensions, different dimensions\u002Fnamespace, nothing returned) and the where-does-my-metric-live namespace\u002Fdimension lookup table moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when mapping a metric name to its likely namespace and dimensions.\n\n## Anti-Patterns — NEVER\n\n- **NEVER** conclude a metric is \"missing\" without running (or being\n  supplied) `list-metrics` output. An empty `get-metric-statistics`\n  response is NOT evidence of absence.\n\n- **NEVER** declare METRIC_VALUE_UNEXPECTED without trying every\n  Statistic on the same Period. The operator may be looking at Sum\n  when they expect Average.\n\n- **NEVER** assume `INSUFFICIENT_DATA` means the metric is broken.\n  It means the alarm saw too few data points in the evaluation\n  window. The metric may be perfectly healthy; the alarm config is\n  the cause.\n\n- **NEVER** conclude a custom metric is failing without checking all\n  three paths: PutMetricData API (CloudTrail), CloudWatch agent\n  (agent log + config `metrics` section), and EMF (raw blob\n  inspection). The same symptom has three different root causes.\n\n- **NEVER** assume EMF ingestion failure produces an error. Malformed\n  EMF blobs are silently dropped — only raw log inspection reveals\n  the malformed JSON.\n\n- **NEVER** conclude Container Insights is \"broken\" without verifying\n  (a) the setting is enabled (ECS) or the agent is installed (EKS),\n  AND (b) the cluster has running tasks \u002F pods. An idle cluster emits\n  nothing.\n\n- **NEVER** recommend enabling Container Insights without warning\n  about cost. Container Insights is a paid feature that emits many\n  metrics per task \u002F pod; on a large cluster it materially increases\n  CloudWatch cost.\n\n- **NEVER** declare ROOT_CAUSE_FOUND without quoting both\n  `list-metrics` AND `get-metric-statistics` output. The judge\n  requires verbatim field values from both APIs.\n\n- **NEVER** suggest `PutMetricData` as a workaround for a missing\n  AWS-service metric. AWS service metrics are emitted by the service,\n  not by user code. The fix is to enable the feature (e.g., Container\n  Insights) or wait for the service's emission cadence.\n\n- **NEVER** conflate Standard (60s floor) with High Resolution (1s\n  floor) metrics. A Period 1 query on a Standard metric returns\n  empty. Verify `StorageResolution` from the emitter before\n  diagnosing.\n\n- **NEVER** conclude a RUM issue without verifying the snippet\n  actually loads in the browser. Ad blockers and cookie consent\n  banners commonly suppress the RUM script silently.\n\n- **NEVER** recommend `StorageResolution: 1` without warning about\n  the high-resolution PutMetricData quota. Bursting thousands of\n  high-resolution metrics per second silently drops data.\n\n- **NEVER** assume the CloudWatch agent emits metrics because logs\n  are working. The agent's `logs` and `metrics` sections are\n  independent — verify both.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features 2024-2026 (cross-account observability GA, Metric Streams enhancements, agent unified telemetry\u002FOTel, EMF for Lambda, Container Insights Enhanced for EKS, RUM custom events, high-resolution quota raise) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when the symptom involves a 2024-2026 feature path.\n\n## References\n\nSee `references\u002Fdiagnostic-decision-trees.md` for the full per-category\nwalk with worked examples, and `references\u002Femf-and-agent-validation.md`\nfor canonical EMF blob validation and CloudWatch agent config snippets.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert edge cases, list-metrics-first heuristic + namespace lookup table, and 2024-2026 AWS features moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — per-step diagnostic walks (Steps 2-7) and Step 9 fix-verification probes moved from SKILL.md\n- [references\u002Fdiagnostic-decision-trees.md](references\u002Fdiagnostic-decision-trees.md) — full per-category walk with worked examples\n- [references\u002Femf-and-agent-validation.md](references\u002Femf-and-agent-validation.md) — canonical EMF blob validation and CloudWatch agent config snippets\n\n## Domain\n\nAWS CloudOps \u002F Observability & Metrics Reliability.\n\n## AWS documentation\n\n- **Amazon CloudWatch User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FWhatIsCloudWatch.html\n- **Using Amazon CloudWatch metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fworking_with_metrics.html\n- **CloudWatch Embedded Metric Format** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Embedded_Metric_Format.html\n- **CloudWatch agent configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Agent-Configuration-File-Details.html\n- **Container Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FContainerInsights.html\n- **CloudWatch cross-account observability** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCross-Account-Cross-Region.html\n- **CloudWatch RUM** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM.html\n- **CloudWatch CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fcloudwatch\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"cloudwatch, metrics, management, troubleshoot, missing-metric, insufficient-data, emf, container-insights, rum","2","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","CloudWatch Metrics, metric missing, wrong namespace, wrong dimensions, wrong statistic, metric math, INSUFFICIENT_DATA, custom metric, PutMetricData, Embedded Metric Format, EMF, CloudWatch Agent, Container Insights, EKS insights, ECS insights, CloudWatch RUM, alarm, get-metric-statistics, list-metrics","troubleshoot","medium","false","capability","Diagnosing why a CloudWatch metric is absent (wrong namespace, wrong dimensions, resource not emitting); why a metric value is unexpected (wrong statistic, wrong period, metric math error); why an alarm is stuck in INSUFFICIENT_DATA; why custom metrics are not arriving (CloudWatch agent misconfigured, PutMetricData denied, EMF blob malformed); why Container Insights shows no data for EKS \u002F ECS; or why CloudWatch RUM is not collecting data.","true","ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE","active","Input: either (a) a symptom description (namespace, metric name, dimensions, expected vs observed value or alarm state), OR (b) a live-account scenario where the agent runs aws cloudwatch get-metric-statistics \u002F list-metrics \u002F aws logs filter-log-events (for EMF and agent logs) \u002F aws ecs describe-services (Container Insights) to gather evidence. Output: a deterministic INCIDENT \u002F VERDICT \u002F ROOT_CAUSE \u002F EVIDENCE \u002F ROOT_CAUSE_CATALOG \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_FOUND, NEED_MORE_INFO, ESCALATE} and ROOT_CAUSE names the specific failure category (METRIC_NOT_APPEARING \u002F METRIC_VALUE_UNEXPECTED \u002F INSUFFICIENT_DATA_ALRM \u002F CUSTOM_METRIC_NOT_ARRIVING \u002F CONTAINER_INSIGHTS_MISSING \u002F RUM_NOT_COLLECTING) and the offending config element.","CloudWatch metric missing, CloudWatch metric not appearing, CloudWatch wrong namespace, CloudWatch wrong dimensions, CloudWatch wrong statistic, CloudWatch metric math error, CloudWatch alarm INSUFFICIENT_DATA, custom metric not arriving, PutMetricData error, Embedded Metric Format parsing, EMF blob invalid, CloudWatch agent not emitting, Container Insights missing, EKS Container Insights not working, ECS Container Insights not working, CloudWatch RUM not collecting","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline diagnosis works on supplied get-metric- statistics \u002F list-metrics JSON output. Live-account diagnosis uses aws cloudwatch get-metric-statistics, list-metrics, put-metric-data (dry validation), aws logs filter-log-events (for EMF and agent logs), aws ecs describe-services \u002F aws eks describe-cluster (for Container Insights), and aws iam simulate-principal-policy (for PutMetricData denied) — AWS CLI v2...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudwatch-metrics-troubleshooter",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-metrics-troubleshooter",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-metrics-troubleshooter",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-metrics-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",6037,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fcw-emf-missing-aws-field.md",936,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fbaselines\u002Fcw-emf-missing-aws-field.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fcw-insufficient-data-period-mismatch.md",828,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fbaselines\u002Fcw-insufficient-data-period-mismatch.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fcw-vague-report-need-namespace.md",626,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fbaselines\u002Fcw-vague-report-need-namespace.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fcw-wrong-namespace-ecs-vs-ec2.md",868,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fbaselines\u002Fcw-wrong-namespace-ecs-vs-ec2.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fcw-wrong-statistic-sum-vs-average.md",787,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fbaselines\u002Fcw-wrong-statistic-sum-vs-average.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",2082,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4688,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fcw-emf-missing-aws-field.md",1667,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fprompts\u002Fcw-emf-missing-aws-field.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fcw-insufficient-data-period-mismatch.md",1209,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fprompts\u002Fcw-insufficient-data-period-mismatch.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fcw-vague-report-need-namespace.md",565,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fprompts\u002Fcw-vague-report-need-namespace.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fcw-wrong-namespace-ecs-vs-ec2.md",1383,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fprompts\u002Fcw-wrong-namespace-ecs-vs-ec2.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fcw-wrong-statistic-sum-vs-average.md",1175,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fevals\u002Fprompts\u002Fcw-wrong-statistic-sum-vs-average.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",6018,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",9185,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fdiagnostic-commands.md",7188,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdiagnostic-decision-trees.md",9413,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Freferences\u002Fdiagnostic-decision-trees.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Femf-and-agent-validation.md",8765,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Freferences\u002Femf-and-agent-validation.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"skill.usf.yaml",4445,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-metrics-troubleshooter\u002Fskill.usf.yaml",[144,151,158,165,172,179],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]