npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@alerthq/provider-aws-cloudwatch

v0.0.1

Published

AWS CloudWatch alert provider for alerthq

Readme

@alerthq/provider-aws-cloudwatch

AWS CloudWatch alert provider for alerthq.

Supported Alert Types

| Alert Type | API Source | Notes | |------------|-----------|-------| | Metric Alarms | DescribeAlarms via @aws-sdk/client-cloudwatch | Includes standard and anomaly detection alarms |

Composite alarms are not currently fetched (they use a separate API call).

Authentication

Uses the standard AWS credential chain. Credentials are resolved in this order:

  1. Explicit credentials in config (accessKeyId, secretAccessKey, optional sessionToken)
  2. Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
  3. Shared credentials file (~/.aws/credentials)
  4. IAM role (EC2 instance profile, ECS task role, Lambda execution role)

Configuration

Add to your alerthq.yaml:

providers:
  aws-cloudwatch:
    enabled: true
    regions:
      - us-east-1
      - eu-west-1
    # Optional: explicit credentials (omit to use default chain)
    # credentials:
    #   accessKeyId: AKIA...
    #   secretAccessKey: ...
    #   sessionToken: ...

| Field | Type | Required | Default | Description | |-------|------|----------|---------|-------------| | regions | string[] | Yes | — | AWS regions to scan for alarms | | credentials.accessKeyId | string | No | — | AWS access key ID | | credentials.secretAccessKey | string | No | — | AWS secret access key | | credentials.sessionToken | string | No | — | AWS session token (for temporary credentials) |

Required Permissions

Minimum IAM policy for read-only access:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "cloudwatch:DescribeAlarms",
        "cloudwatch:ListTagsForResource"
      ],
      "Resource": "*"
    }
  ]
}

ListTagsForResource is optional — if denied, alarms are still fetched but without tag enrichment.

Field Mapping

| AlertDefinition Field | Source | |-----------------------|--------| | id | generateAlertId('aws-cloudwatch', AlarmArn) | | sourceId | AlarmArn | | name | AlarmName | | description | AlarmDescription | | enabled | Always true (CloudWatch alarms cannot be disabled) | | severity | From severity tag if present, otherwise 'warning' | | conditionSummary | Built from MetricName, ComparisonOperator, Threshold, Period, EvaluationPeriods | | notificationTargets | Deduplicated union of OKActions, AlarmActions, InsufficientDataActions | | tags | Resource tags via ListTagsForResource | | owner | From owner tag if present | | lastModifiedAt | AlarmConfigurationUpdatedTimestamp |

Limitations

  • Only fetches metric alarms; composite alarms are not yet supported.
  • Severity is inferred from resource tags (severity key) — CloudWatch has no native severity field.
  • Multi-region scanning is sequential per region.
  • Tag enrichment requires one API call per alarm, which may be slow for large alarm counts.

License

MIT