config:
route:
routes:
- match:
severity: ticket
group_by: ['...']
group_wait: 1s
group_interval: 1s
repeat_interval: 10d
receiver: ticket
receivers:
- name: 'ticket'
email_configs:
- to: '....'
headers:
subject: 'Prometheus alerts'
html: >-
{{ range .Alerts }}
<pre>
title: {{ .Annotations.summary }} ({{ .Labels.cluster }})
assignee: {{ .Annotations.assignee }}
{{ end }}
send_resolved: true
level=error ts=2020-02-18T11:17:42.017Z caller=notify.go:367 component=dispatcher msg="Error on notify" err="cancelling notify retry
for \"email\" due to unrecoverable error: execute html template: template: :13:32: executing \"\" at <.GroupLabels.k8scluster>: can
't evaluate field GroupLabels in type template.Alert" context_err=null
level=error ts=2020-02-18T11:17:42.017Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err=
"cancelling notify retry for \"email\" due to unrecoverable error: execute html template: template: :13:32: executing \"\" at <.Grou
pLabels.k8scluster>: can't evaluate field GroupLabels in type template.Alert"
level=error ts=2020-02-18T11:17:43.020Z caller=notify.go:367 component=dispatcher msg="Error on notify" err="cancelling notify retry
for \"email\" due to unrecoverable error: execute html template: template: :13:32: executing \"\" at <.GroupLabels.k8scluster>: can
't evaluate field GroupLabels in type template.Alert" context_err=null
level=error ts=2020-02-18T11:17:43.020Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err=
"cancelling notify retry for \"email\" due to unrecoverable error: execute html template: template: :13:32: executing \"\" at <.Grou
pLabels.k8scluster>: can't evaluate field GroupLabels in type template.Alert"
level=error ts=2020-02-18T11:17:44.020Z caller=notify.go:367 component=dispatcher msg="Error on notify" err="cancelling notify retry
for \"email\" due to unrecoverable error: execute html template: template: :13:32: executing \"\" at <.GroupLabels.k8scluster>: can
't evaluate field GroupLabels in type template.Alert" context_err=null
level=error ts=2020-02-18T11:17:44.020Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err=
"cancelling notify retry for \"email\" due to unrecoverable error: execute html template: template: :13:32: executing \"\" at <.Grou
pLabels.k8scluster>: can't evaluate field GroupLabels in type template.Alert"