Alertmanager Pagerduty description

25 views
Skip to first unread message

Kenneth Lim

unread,
Feb 18, 2020, 8:45:14 PM2/18/20
to Prometheus Users
I am trying to use following for Pagerduty description:


- name: 'pagerduty-notify-techops'
  pagerduty_configs:
  - service_key: xxxx
    description: {{ range .Alerts }}Description: {{ .Annotations.description }}{{ end }}

But ended up with an error: 

level=error ts=2020-02-19T01:31:22.005Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=4 err="cancelling notify retry for \"pagerduty\" due to unrecoverable error: unexpected status code 400: Event object is invalid: Description is missing or blank"

What am i doing wrong?

Thanks for the help!

Simon Pasquier

unread,
Feb 21, 2020, 10:02:10 AM2/21/20
to Kenneth Lim, Prometheus Users
are you sure that you've shared the correct configuration?
can you check again in the Alertmanager UI status page?

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b7849b17-9b12-41b6-8fdd-1dbbffbe6bef%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages