Open
Description
Is your feature request related to a problem? Please describe
In our system, some alerts include all the labels, while others do not. When certain metrics or fields are missing, it causes exceptions during template rendering. This makes it difficult to build robust templates that can handle all alert variations gracefully. It's currently difficult due to the limitations of custom templating. Using Jinja instead would make it much easier and more flexible.
Describe the solution you'd like
Replace the current custom templating system with Jinja. This would provide greater flexibility and power when creating templates, especially when handling optional fields and conditional logic.
Describe alternatives you've considered
- Extend the current custom templating to support conditional (if) blocks
- Add support for default values when a metric or label is missing in the workflow