-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add entity_display_name for VictorOps, use better state_message #769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a pointer to the docs for this field?
template/default.tmpl
Outdated
@@ -46,9 +46,19 @@ Alerts Resolved: | |||
{{ define "opsgenie.default.source" }}{{ template "__alertmanagerURL" . }}{{ end }} | |||
|
|||
|
|||
{{ define "victorops.default.state_message" }}{{ template "__subject" . }} | {{ template "__alertmanagerURL" . }}{{ end }} | |||
{{ define "victorops.default.monitoring_tool" }}{{ template "__alertmanager" . }}{{ end }} | |||
{{ define "victorops.default.state_message" }}{{ template "__alertmanager" . }}: {{ template "__alertmanagerURL" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't create additional default formats, use what we already have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using __subject
as entity_display_name
now, and using a more verbose state_message
(similar to opsgenie.default.description
) instead of __subject
.
In other words having __subject
in 2 different fields is not very useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having to maintain a format per notifier is not desirable, this should be a copy (preferably a template) of what we already have for this type of long-form field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood, I will use the same template used for opsgenie.default.description
.
Please see |
Not sure if this is the right place to mention this: having the generated binary files in repository causes problems with rebasing forks and PRs. |
@siavashs In regards to the generated binary files: We plan to address this with the new UI in the future (See ui-rewrite branch) |
@siavashs Thanks for your work on this thus far. Is there anything I could do to help with getting this merged? Having |
@devinodaniel I'm still waiting for maintainers to merge this. Regarding the
alertmanager uses |
+1 |
@siavashs we've talked about how to generate identifiers that would lend themselves to being used as Could you fix the conflict with |
@stuartnelson3 done, not sure why travis-ci is failing though. |
@siavashs Your |
@mxinden When I try to build the assets I get this error:
|
Cool, I guess that worked. I would still like @stuartnelson3 to look over this, as he was more involved so far. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Hey, I'm on vacation for the next two weeks. If this looks good to @mxinden
then I say go for it, otherwise I will look when I am back
…On Tue, Jun 27, 2017, 15:59 Carlos Alexandro Becker < ***@***.***> wrote:
***@***.**** approved this pull request.
lgtm
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#769 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABVVWBSp2wXs4nL-hCZRUagXg_F2aRPrks5sIQrFgaJpZM4NQlRG>
.
|
@siavashs, sorry about not looking at this earlier. This generally looks good to me. The documentation on We have had problems in the past by our generated messages causing receiver APIs to reject our notifications, which is pretty bad obviously. Can we find out what the actual maximum length is and then truncate the generated text for this field to that length? Limiting to something like 4KB is probably sensible. |
@fabxc good point, I sent a request to VictorOps support regarding the maximum length of |
Response from VictorOps support:
I will add a check for |
Thanks |
Thanks all for getting this merged in, any chance an update to the docs can be made to reflect this capability? |
This is clearer behavior and users will notice and fix their textfiles faster than if we just output a warning.
This PR fixes #580 and uses a better
state_message
since this field has a high character limit and is intended for a long, verbose, explanation of the problem.More details about REST endpoint can be found here.