Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JIRA_CONFIG] Template fields alert manager --> jira integration does not work #4110

Open
vmkullo opened this issue Nov 5, 2024 · 0 comments

Comments

@vmkullo
Copy link

vmkullo commented Nov 5, 2024

Hellow!
Tried to use a new feature that allows to integrate Alertmanager with Jira without using jiralert https://github.com/prometheus/alertmanager/blob/main/docs/configuration.md#jira_config.
Encountered a problem that the “template” in “fields” is not readable, this is what my configuration file block looks like:

fields:
customfield_10002: "AB-123"
customfield_11314: [ { "key": "ABCD-123" } ]
customfield_11315: [ { "key": "ABCD-123" } ]
customfield_13707: '{{ template "jira.test.alertname" . }}'
customfield_13708: '{{ template "jira.test.namespace" . }}'
customfield_13709: '{{ template "jira.test.instance" . }}'

As a result when trying to send a notification, the sending happens, but the values are not read out and we get template names in the notification text, for example :
'alertname = {{ template 'jira.test.alertname' . }}'
namespace = {{ template “jira.test.namespace” . }}

And I want to get:
alertname = prod-123 (example)
namespace = monitoring (example)

Can you tell me if Alertmanager can't handle template in fields correctly or is there another construct for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant