-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Alerting: Add support for Sensu Go notification channel #28012
Conversation
Similar to current support for the older "Core" version of Sensu, this commit add support for the newer version. Closes grafana#19908 Signed-off-by: Todd Campbell <todd@sensu.io>
Signed-off-by: Todd Campbell <todd@sensu.io>
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.
Frontend changes look ok a bit confusing with 2 versions of sensu but I hope there is a description somewhere that helps the users?
Thanks, we'll review it this week. |
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 agree with what @hugohaggmark said. What is the difference? Can it be expressed in a better way?
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 saw some issues that should be fixed, but bear in mind that we need to decide first if we want to include this new channel.
PR review suggestions Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Signed-off-by: Todd Campbell <todd@sensu.io>
We're still discussing potential inclusion of Sensu Go support. |
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.
Added two copy-edit suggestions.
Signed-off-by: Todd Campbell <todd@sensu.io>
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.
We have thought about this a bit, and are leaning towards accepting the PR.
However, we need facilities to make it maintainable. Could you also add a Sensu Go block to devenv/docker/blocks, so we can easily bring up a Docker Compose environment when we need to maintain/test it?
Signed-off-by: Todd Campbell <todd@sensu.io>
This should be fixed now. |
Signed-off-by: Todd Campbell <todd@sensu.io>
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.
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.
Generally works fine!
I have requested some changes regarding securely storing the API key.
Set the API key as a secure value. Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Signed-off-by: Todd Campbell <todd@sensu.io>
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.
Thank you for your contribution and the delayed response.
It works fine but I have a small suggestion.
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
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.
Great! one last thing: you have to synchronise your branch with master once again for the CI built to succeed in order to get it merged!
@papagian branch merged with master and pushed again, CI builds successful. Thanks for your assistance! |
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.
Generally looks good to me, but left suggestions for some improvements to the tests. Basically, you should use require.NoError
and require.Error
instead of their assert
equivalents, since you want to abort the tests if these tests fail, to avoid chaos/undefined behaviour in the following code.
Signed-off-by: Todd Campbell <todd@sensu.io>
What this PR does / why we need it:
Similar to current support for the older "Core" version of
Sensu, this commit add support for the newer version.
Which issue(s) this PR fixes:
Fixes #19908
Special notes for your reviewer: