trinodb / trino-gateway

https://trinodb.github.io/trino-gateway/
Apache License 2.0
122 stars 48 forks source link

Enable email notifier to send emails for health check failures #319

Open prakhar10 opened 2 months ago

prakhar10 commented 2 months ago

Description

This change enables to send email notifications for healthcheck failures on backend trino clusters.

New fields added in the NotifierConfiguration.java class: enabled - To enable or disable sending emails for healthcheck failures gatewayInstance - To specify gateway instance name in case there are multiple instances. This will be displayed in the email subject so that one can know in which instance the cluster is unhealthy. customContent - To provide custom email body in case the default content is not very helpful.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required. (X) Release notes are required. Please propose a release note for me. ( ) Release notes are required, with the following suggested text:

* 
mosabua commented 1 month ago

@prakhar10 can you fix the compile failure?

andythsu commented 1 month ago

@prakhar10 are you still working on this one or can we close this?

prakhar10 commented 1 month ago

@prakhar10 are you still working on this one or can we close this?

yes, sorry for the delay, i'll get back on this by sunday.