Try it free

Set up PagerDuty Connector

  • Latest Dynatrace
  • How-to guide
  • 3-min read

Set up the PagerDuty PagerDuty Connector so that you can create incidents and send events from a workflow. Setup has two parts: a PagerDuty connection for every action except Send event, and a PagerDuty Events connection for Send event itself.

Prerequisites

You need the app-engine:apps:install permission.

Required Set up PagerDuty Connector

Use the PagerDuty PagerDuty Connector with a PagerDuty API key to automate incident creation and retrieve on-call information via the PagerDuty REST API.

Step 1: Grant permissions to Workflows

Workflows Workflows requires some permissions to run actions on your behalf. Other permissions are required by actions that come bundled with the PagerDuty PagerDuty Connector itself.

To fine-tune permissions granted to Workflows:

  1. Go to Workflows and select Settings > Authorization settings.
  2. Select the following permissions besides the general Workflows permission.
    • app-settings:objects:read
    • state:app-states:read
    • state:app-states:write
    • state:app-states:delete

For more on general Workflows user permissions, see Manage workflow permissions.

Step 2: Create PagerDuty API key

To interact with PagerDuty, you need an API key. To learn how to obtain it, refer to the PagerDuty official documentation.

Step 3: Configure PagerDuty connection

You need a configured connection for each of your PagerDuty environments.

  1. Go to Settings and select Connections > Connectors > PagerDuty.
  2. Select Connection.
  3. Provide a meaningful name for your connection.
  4. If needed, adapt the URL of the PagerDuty API.
  5. Provide your PagerDuty API key.
  6. Select Create.

Optional Set up Events connection for Send event action

The Send event action uses the PagerDuty Events API v2 and requires a separate Events connection configured with a routing key. Use this connection to trigger, acknowledge, and resolve incidents in PagerDuty directly from a workflow.

Step 1: Get the routing key from PagerDuty

A routing key is a 32-character integration key that identifies the PagerDuty service integration or the global integration that receives events from Dynatrace.

To get the routing key, see the PagerDuty documentation:

  • For a service integration, Create a service
  • For a global orchestration, Configure event orchestration

Step 2: Configure PagerDuty Events connection

You need a configured events connection for each PagerDuty service that receives events from Dynatrace.

  1. If you were in PagerDuty, go to Dynatrace.
  2. Go to Settings and select Connections > PagerDuty.
  3. Select the Events API tab.
  4. Select Connection.
  5. Provide a meaningful name for your connection in the Connection name field.
  6. If needed, edit the URL in the PagerDuty Events API URL field.
  7. Paste the routing key you copied from PagerDuty in the Routing key field.
  8. Select Create.

Additional notes

  • To add PagerDuty connection settings, you need the following permissions:

    ALLOW settings:objects:read, settings:objects:write, settings:schemas:read WHERE settings:schemaId = "app:dynatrace.pagerduty:connection"
  • To add PagerDuty Events connection settings, you need:

    ALLOW settings:objects:read, settings:objects:write, settings:schemas:read WHERE settings:schemaId = "app:dynatrace.pagerduty:events-connection"

For more details, see Permissions and access.

Related topics

  • Workflows
  • PagerDuty Connector
  • Actions for PagerDuty Connector
  • Send problem as event to PagerDuty workflow template
Related tags
Dynatrace Platform