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

Fixes #105 marshmallow.exceptions.ValidationError #106

Merged
merged 2 commits into from
Feb 19, 2019

Conversation

gjermy
Copy link
Contributor

@gjermy gjermy commented Feb 15, 2019

Description of the Change

Cope with Prometheus alerts containing commonAnnotations, commonLabels, groupLabels and a groupKey at the Message level. See with_common_items.json

Allow arbitrary label names in message.commonAnnotations, message.commonLabels, message.groupLabels, alert.labels, alert.annotations.

Benefits

commonAnnotations etc - prometheus must have introduced these since the prom2teams integration was written.

Arbitrary labels: The prom2teams integration is otherwise tied to the particular label names coded into message_schema.py, which will likely not be same for other users alerting setups.

Possible Drawbacks

User can not access their own arbitrary label values via the template, but as long as all information wanted to be displayed in present in the fields which are set in class PrometheusAlert.py, then this shouldn't matter,

Applicable Issues

#105 marshmallow.exceptions.ValidationError

@jnogol
Copy link
Collaborator

jnogol commented Feb 18, 2019

Thank you so much for your PR and for using Prom2teams, @gjermy. Could you please add this change to the CHANGELOG.md?

@gjermy
Copy link
Contributor Author

gjermy commented Feb 18, 2019

Hi @jnogol, sorry missed the changelog entry. Have added now.

@dortegau dortegau merged commit c52211e into idealista:develop Feb 19, 2019
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

Successfully merging this pull request may close these issues.

6 participants