“Test” not working for Webhook notification channel in 8.3.3
Grafana 8.3.3 sending random value in “ruleId” while executing “Test” for Webhook notification channel but older Grafana version, i.e. 6.7.4 were sending 0 as default value in “ruleId” . Can you please confirm if this is expected behaviour or this is a bug? If it is expected behaviour, is there any workaround by doing some configuration changes to pass 0 as default value in “ruleId” instead of any random values since we have code handing considering 0 as default value for “ruleId” for test notification channel.
6.7.4 Grafana Version Test Notification payload:
{
"dashboardId": 1,
"evalMatches": [
{
"value": 100,
"metric": "High value",
"tags": null
},
{
"value": 200,
"metric": "Higher Value",
"tags": null
}
],
"imageUrl": "https://grafana.com/assets/img/blog/mixed_styles.png",
"message": "Someone is testing the alert notification within grafana.",
"orgId": 0,
"panelId": 1,
"ruleId": 0,
"ruleName": "Test notification",
"state": "alerting",
"tags": {},
"title": "[Alerting] Test notification"
}
==========================================
Grafana 8.3.3 Test Notifcation payload.
{
"title": "[Alerting] Test notification",
"ruleId": 1559729022103063253,
"ruleName": "Test notification",
"state": "alerting",
"evalMatches": [
{
"value": 100,
"metric": "High value",
"tags": null
},
{
"value": 200,
"metric": "Higher Value",
"tags": null
}
],
"orgId": 0,
"dashboardId": 1,
"panelId": 1,
"tags": {},
"message": "Someone is testing the alert notification within Grafana."
}