I'd like to make our monitoring system a bit more "business user friendly". I am using elastalert2 for monitoring. The mails it generates by default are highly cryptic and my colleagues outside of technology do not understand them at all.
I've been trying to play with alert_text
to give them a bit of a better description of what happened. Unfortunately, I don't find any documentation of what variables are available for jinja templates. Therefore, the only thing I can print out is the number of hits - not the name of the rule, or for what time period the hits apply.
Is there someone who has some experience with that?
In your elastalert2 rule definition, you can use the
alert_text_args
field to define some fields you would like to use in youralert_text
.For example:
Reference: elastalert2 rule types documentation