alertmanager/notify
gotjosh 3b9c467e1c
Capture receiver integration errors
As an alerts traverses through the routing tree, there's a chance we fail to delivery the notification as we attempt to send it.

This creates a problem where a user that has a failure in their template or their receiver integration (e.g. webhook) is unavailable has no visibility on this problem.

This change, enhances the receiver API to include the last error, duration and time an alert went through the receiver.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2022-07-22 19:52:09 +01:00
..
email Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
opsgenie Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
pagerduty Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
pushover Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
slack Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
sns Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
telegram notify/telegram: Fix test 2022-07-05 13:12:07 +02:00
test Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
victorops Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
webhook Enable HTTP 2 again (#2720) 2021-11-10 17:28:47 +01:00
wechat Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
notify.go Capture receiver integration errors 2022-07-22 19:52:09 +01:00
notify_test.go Capture receiver integration errors 2022-07-22 19:52:09 +01:00
receiver.go Capture receiver integration errors 2022-07-22 19:52:09 +01:00
util.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
util_test.go notify: refactor code to retry requests (#1974) 2019-08-02 16:17:40 +02:00