Trigger PagerDuty incidents from Slack without users needing to have associated PagerDuty accounts.
Runs as a serverless application on Azure Functions.
This is being actively used and supported by the engineering department at Castor to allow anyone within the company to open incidents.
In order to work correctly, the following app settings are required:
PAGERDUTY_API_KEY
: A valid PagerDuty user API token (it's recommended to create a dedicated "robot" account for this).PAGERDUTY_USER_EMAIL
: The email address of the user associated with above API key.SLACK_API_TOKEN
: The Slack API token associated with the Slack App (see Installing into a Slack workspace below).SLACK_SIGNING_SECRET
: The Slack signing secret, used to validate requests coming from Slack.
These optional app settings can be set for additional functionality:
SENTRY_DSN
: A Sentry DSN to enable exception tracking with Sentry.
- Visit https://api.slack.com/apps/ and click Create New App.
- Choose From an app manifest and select the desired workspace.
- Paste in the contents from
slack-app-manifest.yml
, making sure to replace${FUNCTIONS_APP_DOMAIN}
with the endpoint of your deployed Azure Functions app.- Hint: envsubst can be helpful here, try:
FUNCTIONS_APP_DOMAIN=your-function-name.azurewebsites.net envsubst < slack-app-manifest.yml
)
- Hint: envsubst can be helpful here, try:
- Review and complete the installation, then proceed with Install to Workspace.
This software is dual-licensed under the Apache 2.0 and the MIT licenses.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.