elastalert
elastalert copied to clipboard
Is it possible to add additional field of alert_info into ElastAlert Metadata Index ?
When using Slack alerter, Metadata Index of elastalert will contain these two fields about alert_info.
alert_info.slack_username_overridealert_info.type
What I want to do is to add new filed alert_info.slack_channel_override into elastalert Metadata Index.
Is there any way to realize that?
I guess the implementation is here. https://github.com/Yelp/elastalert/blob/f4bad06f35e44d664072f9a7a80580650c62fbef/elastalert/alerts.py#L1223-L1225
So the only way to add new fields into metadata index is creating a new Alerter that inherits from SlackAlerter and that has a method get_info returning new fields?
Any other way easier?