Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Alertmanager] Custom email template sent as emtpy mail #936

Closed
doctorlector opened this issue Aug 2, 2017 · 2 comments
Closed

[Alertmanager] Custom email template sent as emtpy mail #936

doctorlector opened this issue Aug 2, 2017 · 2 comments

Comments

@doctorlector
Copy link

doctorlector commented Aug 2, 2017

Hi,

I receive an empty e-mail alert when I'm using custom email template for alerts.

Debug output:
ERRO[182542] Notify for 1 alerts failed: Cancelling notify retry for "email" due to unrecoverable error: executing email html template: html/template::1:12: no such template "email.html" source="dispatch.go:261"

The e-mail template does exist in the template folder which correctly specified in .yml config file.
I have already raised the topic in prometheus google group but this didn't help me at all.
Already spent weeks in figuring out how to make it work.

Link to a discussion - Cannot apply custom e-mail template

Short extract from alertmanager.yml config:

templates:
- '/etc/alertmanager/template/.tmpl'

receivers:
- name: 'username'
  email_configs:
  - to: 'username@companyname.com'
    require_tls: false
    html: '{{ template "email.html" . }}'

Thanks in advance.

@josedonizetti
Copy link
Contributor

Think this was fixed by #1009
Should it be closed @stuartnelson3?

@beorn7
Copy link
Member

beorn7 commented Oct 4, 2017

Yes.

@beorn7 beorn7 closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants