Skip to content

rootlyhq/rootly-datadog-pagerduty-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rootly Datadog Pagerduty Migrator

Appends @webhook-rootly-[serviceName] to every Datadog monitor containing @pagerduty-[serviceName], creating webhooks as necessary. Services are matched by name.

Requirements

  • Node.js and Yarn
  • DD_API_KEY, DD_APP_KEY, PAGERDUTY_API_TOKEN, and ROOTLY_API_TOKEN environment variables with the necessary permissions to read and update Datadog monitors, create Datadog webhooks, read PagerDuty services, and read Rootly services.
  • A configured Rootly alert source for Datadog. Set ROOTLY_ALERT_SOURCE_SECRET to the alert source secret. This is used to verify webhooks from Datadog.
  • Matching Pagerduty services must exist in Rootly and be linked to PagerDuty (the Rootly service pagerduty_id attribute must be set). You can link services to PagerDuty on the integrations tab when configuring your Rootly service.
  • Services must have matching normalized names. A normalized name is one where all characters except A-z, 0-9, underscores, and dashes are replaced with an underscore. Matching is case-insensitive. For example, a Datadog mention @pagerduty-production_on-call will match a pagerduty service named [Production] On-Call or Production on-call.

Usage

yarn install
node index.js

About

Rootly Datadog <-> Pagerduty Migrator

Resources

License

Stars

Watchers

Forks