Replies: 1 comment 4 replies
-
Annotations already support Jinja for up to two fields. Ex: If you absolutely need Jinjafied labels then you can submit a PR. But be aware that no PR will be merged without completely following the contribution guidelines. That includes manual tests, unit-tests, and documentation following existing patterns. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Prometheus, there is templating support for labels and annotation when defining an alerting rule and I would like to propose doing the same for AlertManager alert type in ElastAlert2.
My general idea now is to rely on the
jinja
templating engine so that labels and annotations can be defined like so:Beta Was this translation helpful? Give feedback.
All reactions