There’s a general discussion about those notification scripts going on. I for myself would e.g. rewrite everything in Python and use the power of a scripting language (bash is super hard for me). See what’s possible here: Notifications with Grafana graphs
On the other hand, could this made somewhat generic, where to put the logic, and so on. It would for example be nice to have things like pagerduty or sms natively integrated as well. Still, one needs to maintain them. That’s probably the most difficult part, as a directory called
contrib/ won’t exist long enough until being broken.
I haven’t looked into the PR yet, but will add my thoughts there as well.