-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Support go templating in alerting #709
Labels
feature
New feature or request
Comments
Any chance you could show me an example of how it would look in the configuration? |
Here is an example of how alert manager configures their slack notification via templates: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature request
Would be nice instead of place holders if we could support full go templating in the alert providers if not all but at least the custom provider.
So we can do conditional logic and provide full templating.
https://pkg.go.dev/text/template
Why do you personally want this feature to be implemented?
All I want from our slack alert is to be able to include the URL for instance if status code is 500. Or I could template out the response body into the alert message.
How long have you been using this project?
2 weeks
Additional information
Would be willing to implement this myself.
The text was updated successfully, but these errors were encountered: