PagerDuty Alert: How to set "Severity" level in Alertmanager

I tried to control the severity level of PagerDuty alerts using configuration of Alertmanager.

I hard-coded the severity to warning in the receiver of Alertmanager:

- name: 'whatever_pd_service'
  pagerduty_configs:
  - send_resolved: true
    service_key: SERVICE_KEY
    url: https://events.pagerduty.com/v2/enqueue
    client: '{{ template "pagerduty.default.client" . }}'
    client_url: '{{ template "pagerduty.default.clientURL" . }}'
    severity: 'warning'
    description: '{{ (index .Alerts 0).Annotations.summary }}'
    details:
      firing: '{{ template "pagerduty.default.instances" .Alerts.Firing }}'
      information: '{{ range .Alerts }}{{ .Annotations.information }}
        {{ end }}'
      num_firing: '{{ .Alerts.Firing | len }}'
      num_resolved: '{{ .Alerts.Resolved | len }}'
      resolved: '{{ template "pagerduty.default.instances" .Alerts.Resolved }}'

but still in the alerts generated, the Severity level was set to critical :


Does this indicate that the severity field in the pagerduty_configs is not functioning, or is there anything I missed?

Hi Ken,

Can you please open a ticket with Support at support@pagerduty.com and provide the URL(s) of an example incident or two? We can investigate what happened from there.

Cheers,

Double-check that you don’t have any event orchestration/rules that may be setting it to critical.

Hi Doug, thanks for the feedback. I can confirm that there is no event orchestration/rule to set it to critical.

Thanks Tatiana, I have send an email to support@pagerduty.com with 4 URLs of example incidents.

Hi Ken,

Thanks for submitting that ticket! We’ve followed up with you there. Please respond with any other questions you might have in that ticket.

Cheers,