ndelitski / rancher-alarms

Will kick your ass if found unhealthy service in Rancher environment
85 stars 20 forks source link

Feature Request - Customized Email Subject #10

Closed jayhding closed 8 years ago

jayhding commented 8 years ago

@ndelitski First of all thanks for the html template support, now I can set ENV ALARM_EMAIL_TEMPLATE to use HTEML emails.

Could you also please add support for email subject customisation from environment?

ndelitski commented 8 years ago

Sure, I forgot to pass setting with env variable

On Aug 12, 2016 8:14 AM, "Jay (Hao) Ding" notifications@github.com wrote:

@ndelitski https://github.com/ndelitski First of all thanks for the html template support, now I can set ENV ALARM_EMAIL_TEMPLATE to use HTEML emails.

Could you also please add support for email subject customisation from environment?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ndelitski/rancher-alarms/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7ZWjOpFI2-9g_8RSqsz7V5HQ3rir71ks5qfAEogaJpZM4Jix-z .

ndelitski commented 8 years ago

hi @JayHaoDing! you can set subject now with env variable ALARM_EMAIL_SUBJECT. Templating is supported here so you are able to write smth like "[Rancher] Service #{serviceName} become degraded".