-
Notifications
You must be signed in to change notification settings - Fork 132
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
Jiralert duplicates defects #73
Comments
I haved the same probleme, try to add in prometheus conf group_by[...,namespace,service_name] and normaly, |
@Haazeel your solution didn't worked for us, but it helped to remove label configuration from jiralert config file. Looks like the custom label replaces the labels from alert instead of being added to them. We will now use some workaround to group issues in jira instead of that label and keep the original labels from alert untouched.
|
Looks like a valid bug, help wanted to fix it 🤗 |
Just want to note here that the workaround here (#38 (comment)) does not work with the new label generation. I am not sure if there is a way to get the new |
Thank you for your hard work and great project!
Unfortunately we have found an issue in 1.0.
In our case, when the JiraAlert is triggered by the Alertmanager, it creates new Jira defect, without adding additional Label. For example if the service is down Jira Alert uses the label like: ALERT{alertname="ServiceDown",namespace="",service_name=""} which should already be added to Defect.
Every time the JiraAlert is triggered before creating new defect it searches for existing ones. It uses query – which is the Label which should have been added during the creation of the defect. The query nothing returns, therefore JiraAlert creates new defect rather then updating it.
See the logs below:
The issue causes that many duplicates is created as long as the Label is not added manually.
Below, the part of code that should be checked.
notify.go
Thank you for help in advance!
The text was updated successfully, but these errors were encountered: