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

Custom notifier messages #239

Open
DanielHouston opened this issue Nov 26, 2017 · 1 comment
Open

Custom notifier messages #239

DanielHouston opened this issue Nov 26, 2017 · 1 comment

Comments

@DanielHouston
Copy link

It would be great to customize SMS, Email and HipChat notifications with custom templates. Looking particularly at SMS alerts, there are clear variables (Service name, namespace, cluster, state) around which you could build custom messages.

Current: Service [myservice] for [demo@cluster] is in "CRITICAL" state

With a template stored in the cluster named SMS_TEMPLATE or something:
Searchlight monitoring has triggered: Your Service %service_name% in namespace %ns% on cluster %cluster% is in %state% state

resulting in:
Searchlight monitoring has triggered: Your Service "myservice" in namespace "demo" on cluster "cluster" is in CRITICAL state

Similarly, a HTML template could be used for emails

@DanielHouston
Copy link
Author

From my understanding of the codebase; making sms.go etc configurable based on a template wouldn't be too hard. The difficulty would be in exposing that configuration to the user while maintaining a simple deployment (as it's all compiled and shipped as a container.)

@tamalsaha tamalsaha modified the milestone: 6.0.0 Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants