PagerDuty for Workflows
Your Dynatrace environment can integrate with a PagerDuty environment using PagerDuty for Workflows , enabling you to create incidents, based on your monitoring data automatically.
Configure the integration
To use PagerDuty workflow actions, you first need to install the PagerDuty for Workflows from Dynatrace Hub.
- In Dynatrace Hub , select PagerDuty for Workflows.
- Select Install.
Grant permissions to Workflows
Some permissions are required by Workflows to run actions on your behalf. Other permissions are required by actions that come bundled with PagerDuty for Workflows itself.
To fine-tune permissions granted to Workflows
- Go to Workflows and select Settings > Authorization settings.
- 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 User permissions for workflows.
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.
Configure PagerDuty connection
You need a configured connection for each of your PagerDuty environments.
To configure a connection
- Go to Settings and select Connections > Connectors > PagerDuty.
- Select Connection.
- Provide a meaningful name for your connection.
- If needed, adapt the URL of the PagerDuty API.
- Provide your PagerDuty API key.
- Select Create.
Available actions
The following workflow actions are available for the PagerDuty integration. Each action corresponds to an endpoint of the PagerDuty API.
Action
Description
PagerDuty API endpoint
Create an incident
Creates an incident in your PagerDuty environment. An incident represents a problem or an issue that needs to be addressed and resolved.
Use other actions to obtain the necessary input.
List escalation policies
Lists PagerDuty escalation policies. An escalation policy defines who to notify (and how) in case of an incident.
List priorities
Lists PagerDuty priorities. A priority defines the importance of an incident. The list is ordered from the most to the least severe.
List services
Lists PagerDuty services. A service represents an application, component, or team to which you want to map the incident.
Create a PagerDuty incident
To create an incident, you need to provide the information listed below. You can hard-code them in the Create an incident action or extract them from PagerDuty via an appropriate action.
For more details on each parameter, refer to Create an incident in the PagerDuty official documentation.
To create a workflow that raises a PagerDuty incident
- Go to Workflows and select to create a new workflow.
- In the Choose trigger panel, select the trigger best suited to your needs.
- On the trigger node, select to browse available actions.
- optional In the Choose action panel, search for
PagerDuty
and select one of the information-extracting actions. - optional If needed, add more information-extracting actions. Be sure to put them in parallel.
- On one of the information-extracting nodes, select , search for
PagerDuty
, and select Create an incident. - On each of the remaining information-extracting nodes, select and drag the line to the Create an incident action.
- In the Create an incident action, select the connection to your PagerDuty environment.
- Configure the input fields as needed. To learn how to use the output of information-extracting notes, see Expression reference.
- To test your workflow, select Run.
Troubleshooting
The following are solutions to problems some people have.