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-mongodb-atlas

v0.0.1

Published

MongoDB Atlas alert provider for alerthq

Readme

@alerthq/provider-mongodb-atlas

MongoDB Atlas alert provider for alerthq.

Supported Alert Types

| Alert Type | API Source | Notes | |------------|-----------|-------| | Alert Configurations | GET /api/atlas/v2/groups/{projectId}/alertConfigs | Includes metric threshold, threshold, and event-based alerts |

All Atlas alert configuration types are fetched, including host, replica set, sharded cluster, and user-defined alerts.

Authentication

Uses MongoDB Atlas programmatic API keys with HTTP Digest authentication.

  1. Go to your Atlas organization or project settings
  2. Create an API key with the appropriate permissions
  3. Note the public key and private key

See: Atlas API Keys documentation

Configuration

Add to your alerthq.yaml:

providers:
  mongodb-atlas:
    enabled: true
    publicKey: your-public-key
    privateKey: your-private-key
    projectIds:
      - 60c7abcd1234567890abcdef
      - 60c7abcd1234567890abcdeg
    # baseUrl: https://cloud.mongodb.com  # optional, for private cloud
    # pageSize: 100                       # optional

| Field | Type | Required | Default | Description | |-------|------|----------|---------|-------------| | publicKey | string | Yes | — | Atlas API public key | | privateKey | string | Yes | — | Atlas API private key | | projectIds | string[] | Yes | — | Atlas project (group) IDs to scan | | baseUrl | string | No | https://cloud.mongodb.com | Atlas API base URL | | pageSize | number | No | 100 | Number of alerts per API page |

Required Permissions

The API key needs the Project Read Only role (or higher) on each project listed in projectIds.

Minimum required permission: GROUP_READ_ONLY

Field Mapping

| AlertDefinition Field | Source | |-----------------------|--------| | id | generateAlertId('mongodb-atlas', id) | | sourceId | id (alert config ID) | | name | Built from eventTypeName + metricThreshold.metricName | | description | Empty string (Atlas alert configs have no description) | | enabled | enabled | | severity | 'unknown' (Atlas has no native severity field) | | conditionSummary | Built from metricThreshold (metric, operator, threshold, units), threshold, and matchers | | notificationTargets | Extracted from notifications array by type (EMAIL, SMS, SLACK, WEBHOOK, PAGER_DUTY, DATADOG, OPS_GENIE, VICTOR_OPS, MICROSOFT_TEAMS, TEAM, GROUP, ORG) | | tags | Empty (Atlas alert configs have no native tags) | | owner | Empty string | | lastModifiedAt | updated timestamp |

Limitations

  • Severity is always 'unknown' — Atlas alert configurations have no native severity concept.
  • Description is always empty — the API does not provide a description field.
  • Tags are not available — Atlas uses a different labeling model not exposed on alert configs.
  • Digest authentication requires two HTTP requests per API call (challenge + authenticated request).

License

MIT