github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/notifications/services/pagerduty.md (about)

     1  # PagerDuty
     2  
     3  ## Parameters
     4  
     5  The PagerDuty notification service is used to create PagerDuty incidents and requires specifying the following settings:
     6  
     7  * `pagerdutyToken` - the PagerDuty auth token
     8  * `from` - email address of a valid user associated with the account making the request.
     9  * `serviceID` - The ID of the resource.
    10  
    11  
    12  ## Example
    13  
    14  The following snippet contains sample PagerDuty service configuration:
    15  
    16  ```yaml
    17  apiVersion: v1
    18  kind: Secret
    19  metadata:
    20    name: <secret-name>
    21  stringData:
    22    pagerdutyToken: <pd-api-token>
    23  ```
    24  
    25  ```yaml
    26  apiVersion: v1
    27  kind: ConfigMap
    28  metadata:
    29    name: <config-map-name>
    30  data:
    31    service.pagerduty: |
    32      token: $pagerdutyToken
    33      from: <emailid>
    34  ```
    35  
    36  ## Template
    37  
    38  [Notification templates](../templates.md) support specifying subject for PagerDuty notifications:
    39  
    40  ```yaml
    41  apiVersion: v1
    42  kind: ConfigMap
    43  metadata:
    44    name: <config-map-name>
    45  data:
    46    template.rollout-aborted: |
    47      message: Rollout {{.rollout.metadata.name}} is aborted.
    48      pagerduty:
    49        title: "Rollout {{.rollout.metadata.name}}"
    50        urgency: "high"
    51        body: "Rollout {{.rollout.metadata.name}} aborted "
    52        priorityID: "<priorityID of incident>"
    53  ```
    54  
    55  NOTE: A Priority is a label representing the importance and impact of an incident. This is only available on Standard and Enterprise plans of pagerduty.
    56  
    57  ## Annotation
    58  
    59  Annotation sample for pagerduty notifications:
    60  ```yaml
    61  apiVersion: argoproj.io/v1alpha1
    62  kind: Rollout
    63  metadata:
    64    annotations:
    65      notifications.argoproj.io/subscribe.on-rollout-aborted.pagerduty: "<serviceID for PagerDuty>"
    66  ```