-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Support a custom annotation key as text description for an alert #1845
Comments
What is an example of a "text key" that you would want to use instead of "description" or "summary"? And why? |
I had a situation where I would like to use summary, but it was using description, the or condition creates a precedence. |
@satterly Did I answer your question? |
Is your feature request related to a problem? Please describe.
Prometheus webhook adds Alert description based on a fixed sequence of possible annotations
text = description or summary or f'{severity.upper()}: {resource} is {event}'
Describe the solution you'd like
Should be nice to have an environmental variable to override that sequence with a specific annotation like
PROMETHEUS_TEXT_KEY
.The text was updated successfully, but these errors were encountered: