Skip to content

[➕ Feature]: Jinja template engine in workflow templates #4594

Open
@korolenkowork

Description

@korolenkowork

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions