KOP Recipes - PagerDuty - Rafay Product Documentation

PagerDuty

Although a turnkey integration is available for email based notifications, organizations may wish to send notifications to other platforms in use internally. This recipe documents how organizations can customize the "Alert Manager" system addon configuration and send the alerts to Pager Duty


Configure PagerDuty

If you would like to setup notifications via PagerDuty, you will need an existing PagerDuty account or create a trial for testing here. To setup the alerting to your PagerDuty, you will need a Service Integration Key


Configure Alert Manager

Follow the below steps to customize the Alert Manager "System Addon" for integration with Pager Duty.

receivers:
- name: default-receiver
- name: rafay-webhook
  webhook_configs:
  - http_config:
      tls_config:
        ca_file: /etc/config/certs/ca.crt
        cert_file: /etc/config/certs/client.crt
        insecure_skip_verify: true
        key_file: /etc/config/certs/client.key
        server_name: '{{{ .V2EventFrameworkFQDN }}}'
    url: https://{{{ .V2EventFrameworkFQDN }}}/event/v1/alert/raise
- name: myalerts
  pagerduty_configs:
  - send_resolved: true
    service_key: 04exxxxxxxxxxx33975
route:
  group_interval: 5m
  group_wait: 10s
  receiver: rafay-webhook
  repeat_interval: 3h
  routes:
  - continue: true
    match_re:
      severity: .*
    receiver: rafay-webhook
  - match_re:
      severity: .*
    receiver: myalerts

Update Cluster Blueprint

Follow the steps described below to deploy the customized Alert Manager configuration for PagerDuty to your clusters.

In a few minutes, the blueprint will be published successfully and the customized Alert Manager addon is deployed to your cluster.


Verify Configuration

Once there are alerts generated in the clusters, you should see the notifications in PagerDuty. An illustrative example is show below.