Webhook not working

  • What Grafana version and what operating system are you using?
    grafana-8.1.2
    Linux

  • What are you trying to achieve?
    Configure webhook to get alerts.

  • How are you trying to achieve it?
    Following the steps here

  • What happened?
    The notification doesnt work, see the following error in the logs

t=2022-01-06T20:14:25+0000 lvl=eror msg="Failed to send webhook" logger=alerting.notifier.webhook error="Webhook response status 405 Not Allowed" webhook="Alert to Tenant-amit"
t=2022-01-06T20:14:25+0000 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Webhook response status 405 Not Allowed"
t=2022-01-06T20:14:25+0000 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Webhook response status 405 Not Allowed"
t=2022-01-06T20:14:25+0000 lvl=eror msg="Failed to send alert notifications" logger=context userId=1 orgId=1 uname=admin error="Webhook response status 405 Not Allowed" remote_addr=10.0.3.252
t=2022-01-06T20:14:25+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/alert-notifications/test status=500 remote_addr=10.0.3.252 time_ms=40 size=48 referer=http://a403e60d0765b4239aae11b337538dcf-2014184081.us-west-2.elb.amazonaws.com/alerting/notification/1/edit
  • What did you expect to happen?
    My endpoint should receive the alert.

  • Can you copy/paste the configuration(s) that you are having problems with?

{
    "id": 1,
    "uid": "ZaJVLw0nz",
    "name": "Alert to Tenant-amit",
    "type": "webhook",
    "isDefault": false,
    "sendReminder": false,
    "disableResolveMessage": false,
    "frequency": "",
    "created": "2022-01-06T05:14:16Z",
    "updated": "2022-01-06T20:33:38Z",
    "settings": {
        "addresses": "",
        "autoResolve": true,
        "httpMethod": "POST",
        "password": "",
        "severity": "critical",
        "uploadImage": false,
        "url": "https://tenant-amit.dev.unskript.io/internal/events/sns/eyJlbnZpcm9ubWVudF9pZCI6ImY1NmUzY2ZkLTMwNjctNGZiYy1iYzc5LWEyNWM1YTUyZmYwNCIsImNvbm5lY3Rvcl9pZCI6IjQzOTZiNjJlLWExOGEtNGJjZi1hNWYyLWM2NWZjZGUwNjIyZSJ9",
        "username": ""
    },
    "secureFields": {}
}
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
t=2022-01-06T20:14:25+0000 lvl=eror msg="Failed to send webhook" logger=alerting.notifier.webhook error="Webhook response status 405 Not Allowed" webhook="Alert to Tenant-amit"
t=2022-01-06T20:14:25+0000 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Webhook response status 405 Not Allowed"
t=2022-01-06T20:14:25+0000 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Webhook response status 405 Not Allowed"
t=2022-01-06T20:14:25+0000 lvl=eror msg="Failed to send alert notifications" logger=context userId=1 orgId=1 uname=admin error="Webhook response status 405 Not Allowed" remote_addr=10.0.3.252
t=2022-01-06T20:14:25+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/alert-notifications/test status=500 remote_addr=10.0.3.252 time_ms=40 size=48 referer=http://a403e60d0765b4239aae11b337538dcf-2014184081.us-west-2.elb.amazonaws.com/alerting/notification/1/edit

Figured out the issue, the URL was wrong:(