sensu / sensu-email-handler

Sensu Go Email Handler Plugin
https://sensu.io
MIT License
11 stars 17 forks source link

Location of the email template file #58

Closed twocs closed 3 years ago

twocs commented 3 years ago

For Sensu Go, there might be a base Docker location where we run sensuctl commands, a sensu-backend, and a sensu-frontend. They can all have /etc/sensu/email_template.

Where is the file supposed to go? /etc/sensu/email_template is just too vague a description of the location.

jspaleta commented 3 years ago

Since the handlers such as this email handler are run from one of the sensu backend instances, any supporting file needed for handler operation would need to be available on all backends in the cluster during normal operation.

Would a note in the readme pointing out that the email template file needs to exists on the sensu backends?

twocs commented 3 years ago

Yes, that would be useful. Maybe something like this?

https://github.com/sensu/sensu-email-handler#templates The plugin provides an option to use a template as for the body of the email and is capable of using HTML for formatting the email. The template file for handler operation would need to be available on all backends in the cluster during normal operation. An example is provided below: