AWS CloudWatch Metrics for Openclaw

A streamlined utility for querying and summarizing AWS CloudWatch performance metrics for ECS, EC2, and RDS resources.

delbertheihei
v0.0.1
Feb 28, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install aws-cloud-watch

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install aws-cloud-watch using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is AWS CloudWatch Metrics?

This integration part of the Openclaw Skills ecosystem allows developers to interact directly with AWS CloudWatch without the overhead of heavy external libraries. It utilizes a native crypto-based SigV4 signing mechanism to fetch performance data, providing a fast and secure way to monitor cloud infrastructure.

The skill is designed to bridge the gap between complex AWS data streams and human-readable text summaries. Whether you are checking cluster health or database load, this tool simplifies the retrieval of critical infrastructure metrics for your automated workflows.

AWS CloudWatch Metrics Use Cases

  • Monitoring CPU and memory utilization for ECS clusters to ensure optimal scaling.
  • Checking the health and performance metrics of EC2 instances during deployment cycles.
  • Auditing RDS database performance and connection counts over specific time windows.
  • Integrating automated cloud health checks into custom devops-cloud monitoring dashboards.

How AWS CloudWatch Metrics Works

  1. The skill receives parameters specifying the AWS service (ecs, ec2, or rds), the target metric, and the resource identifier.
  2. It authenticates the request using the provided AWS credentials through a built-in SigV4 signing process.
  3. A direct API call is made to the CloudWatch service endpoint for the specified region.
  4. The raw metric data is parsed and formatted into a concise text-based summary for the user or agent.

AWS CloudWatch Metrics Setup

To get started with this component of Openclaw Skills, configure your environment variables and run the script:

# Required credentials
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key

# Optional configuration
export AWS_REGION=us-west-2

# Execute the query
node ./src/skill.mjs --service ecs --metric cpu --resource <cluster-name> --hours 1

AWS CloudWatch Metrics Data Schema & Taxonomy

The skill manages data through a combination of environment variables and local configuration mapping. Below is the primary structure used for metric retrieval:

Parameter Description Default
service The AWS service target (ecs, ec2, rds) N/A
metric The metric name or alias defined in config.json CPUUtilization
resource The specific resource identifier (Name, ARN, or ID) N/A
hours The lookback window for the query 1 hour
period The granularity of the data points in seconds 300

Metric aliases can be customized in the config.json file to simplify CLI commands.

AWS CloudWatch Metrics Advanced Features

  • Zero-dependency implementation using native Node.js crypto for SigV4 signing instead of the AWS SDK.
  • Custom metric aliasing system via config.json for faster resource monitoring.
  • Support for both standard ECS metrics and detailed Container Insights metrics.
  • Highly configurable time windows and data granularity periods for precise infrastructure auditing within the Openclaw Skills framework.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*