Open sabre1041 opened 6 years ago
I noticed this error as well, the template we have is expecting AlertManager to be configured with RocketChat WebHooks to send notifications to. We should be able to allow users to configure more alternative endpoints than RocketChat, but that will require some logic to be implemented, like different templates or ideally Jinja code on the template and process it using Ansible, but openshift-applier doesn't support that so we need to figure out how do we want to implement this, not sure if a pre-step for the applier
will work as we need to hack the template source to be passed to applier
in some way even before this exists...
Any thoughts @sabre1041 @oybed ?
@makentenza yeah, that was one of my comments to the original PR - i.e.: to ensure RocketChat was optional. Sounds like maybe it isn't? Either way, we could potentially use tags with the openshift-applier. However, this requires breaking the big template file into smaller ones as also commented on the initial PR. I'd say let's start with the latter and see what we can do with tags.
Using "smaller" templates is how it was done for Dynatrace to allow for greater control of these sort of things: https://github.com/redhat-cop/monitoring/pull/3
@oybed that doesn't solve the problem as we need to change the template depending on what the user wants to use.
We need to convert this ConfigMap into Jinja Template and add conditional blocks there to configure different receivers or not configure receivers at all, and this is the point where the applier doesn't solve the requirement.
@makentenza I do believe my earlier proposal would solve it and I actually believe the solution would be quite elegant and possibly even reusable across multiple solutions. We can discuss more next time we meet, and I'll see what I can do to do a quick PoC to provide more info that way.
The following error occurs when trying to deploy AlertManager in OpenShift as part of the Prometheus stack