Alert Manager Templates to update Pagerduty title

17 views
Skip to first unread message

shailja agarwala

unread,
Jun 26, 2024, 5:41:06 AM (11 days ago) Jun 26
to Prometheus Users
I am trying to update Pagerduty alert title using templates in Alert Manager. I have the following template config in alertmanager - but it creates a new field in the `CUSTOM_DETAILS` section of pagerduty instead of updating the title. Am I missing something here?

receivers: - name: 'pagerduty' pagerduty_configs: - service_key: '<key>' send_resolved: true details: summary: '{{ template "pagerduty_description" .}}' title: '{{ template "pagerduty_description" .}}' alert_name: '{{ .CommonLabels.alertname }}' cluster: '{{ .CommonLabels.clustername }}' description: '{{ .CommonAnnotations.description }}' firing: '{{ template "pagerduty_firing" .}}' templates: - '/etc/alertmanager/config/*.tmpl'
Reply all
Reply to author
Forward
0 new messages