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

Log Response Details for Notifier errors for Webhooks, Pushover and VictorOps #3103

Merged
merged 4 commits into from Oct 19, 2022

Conversation

OktarianTB
Copy link
Contributor

Minor improvement to fix #3057 for Webhook, Pushover and VictorOps notifiers to make it easier to debug errors. Lmk if there is a reason not to do this.

Signed-off-by: Oktarian Tilney-Bassett oktariantilneybassett@improbable.io

Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
@OktarianTB OktarianTB changed the title Pass in response body to Retrier Check Log Response Details for Notifier errors for Webhooks, Pushover and VictorOps Oct 11, 2022
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
notify/webhook/webhook.go Outdated Show resolved Hide resolved
notify/webhook/webhook.go Outdated Show resolved Hide resolved
notify/webhook/webhook.go Show resolved Hide resolved
Oktarian Tilney-Bassett and others added 2 commits October 18, 2022 11:48
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Oktarian T-B <oktariantilneybassett@improbable.io>
Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@simonpasquier simonpasquier merged commit d4d36e4 into prometheus:main Oct 19, 2022
@simonpasquier
Copy link
Member

thanks!

qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Nov 16, 2022
…ictorOps (prometheus#3103)

* Pass in response body to Retrier Check
* Custom error details for webhook notifier

Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Dec 13, 2022
…ictorOps (prometheus#3103)

* Pass in response body to Retrier Check
* Custom error details for webhook notifier

Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
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.

Webhook Notifier should log response details in case of an error
2 participants