-
Notifications
You must be signed in to change notification settings - Fork 88
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
Some JSON alerts attributes should be optional #21
Comments
I also ran into this one, any guess when this fix might be merged and a new version including it tagged? |
Hi Roger, First of all, thanks for using Prom2Teams. We are working on it and will release the new version soon. Regards, |
Hi @lindhor, We released a new version (1.1.3) that fixes this. Regards, |
Thank you so much for your quick fix! I can confirm that it works and no longer gives an exception for mandatory fields. The list of mandatory attributes is however too strict, since it includes Maybe the best approach would be to forward the information you receive and have default values for them instead? Something like: alertname='unknown' https://github.com/idealista/prom2teams/blob/master/prom2teams/message/parser.py#L8 @jnogol please reopen or do you want me to file a new issue? |
Hi again Roger, Thank you for the interesting idea, feel free to open an issue and, if this something critical for you, make us a pull request and we will more than happy to include this feature in the next Prom2Teams release. Regards, |
In the current version, the following values are parsed and returned in order to create the Teams message:
Problem is that, depending on the query and/or the alarm rule,
instance
,summary
ordescription
could not be sent by Prometheus. In case this happens, prom2teams fails to parser the input and won't forward the alarm to Microsoft Teams.The text was updated successfully, but these errors were encountered: