Skip to content

Connector Configuration

This guide presents the connector configuration for the PagerDuty destination type.

Configuration

UI labelAPI field nameTypeRequiredAllows notification source type overridesDescription
Service keyintegrationKeyStringtruetrueAlso known as an Integration Key, this unique identifier allows notifications to be sent to a specific PagerDuty service.
Dynamic service keydynamicintegrationKeyStringfalsetrueSpecify a dynamic, data-driven value for the service key using alert metadata. Useful if you need to route alerts to different PagerDuty services based on different conditions.

Templating for dynamic routing

The Service key field supports dynamic templating, enabling dynamic routing by inserting variables into the notification configuration. This allows events to be sent to different services within PagerDuty based on their attributes.

Here is an example Dynamic service key configuration:

{% if alert.groups['team_name'] == 'alpha'%}
  930aaaaaaaaaaaaaaaaaaaaaaaaaa0d1
{% elif alert.groups['team_name'] == 'beta' %}
  930bbbbbbbbbbbbbbbbbbbbbbbbbb0d1
{% else %}
  930xxxxxxxxxxxxxxxxxxxxxxxxxx0d1
{% endif %}