Pagerduty
Parameters
The Pagerduty notification service is used to create pagerduty incidents and requires specifying the following settings:
pagerdutyToken- the pagerduty auth tokenfrom- email address of a valid user associated with the account making the request.serviceID- The ID of the resource.
Example
The following snippet contains sample Pagerduty service configuration:
apiVersion: v1kind: Secretmetadata:name: <secret-name>stringData:pagerdutyToken: <pd-api-token>
apiVersion: v1kind: ConfigMapmetadata:name: <config-map-name>data:service.pagerduty: |token: $pagerdutyTokenfrom: <emailid>
Template
Notification templates support specifying subject for pagerduty notifications:
apiVersion: v1kind: ConfigMapmetadata:name: <config-map-name>data:template.rollout-aborted: |message: Rollout {{.rollout.metadata.name}} is aborted.pagerduty:title: "Rollout {{.rollout.metadata.name}}"urgency: "high"body: "Rollout {{.rollout.metadata.name}} aborted "priorityID: "<priorityID of incident>"
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.
Annotation
Annotation sample for pagerduty notifications:
apiVersion: argoproj.io/v1alpha1kind: Rolloutmetadata:annotations:notifications.argoproj.io/subscribe.on-rollout-aborted.pagerduty: "<serviceID for Pagerduty>"