Most people send their alert notifications to Slack, PagerDuty, Email, or one of the other out-of-the-box Notification Hooks. But you can also configure custom Webhooks to send alert notifications to any API. These custom Webhooks can now pass more information to the APIs they are calling. Several new parameters have been added:
- $appName
- $params
You can now send information about the name of the App for which the alert was triggered. All you need to do is add the $appName placeholder in the parameter section.
You can also forward any additional information the alert might have had related to the grouping specified in the alert rule. For example, to have an alert rule applied to each individual host or container you would use Group when creating the alert rule as shown below. Information about grouping criteria that was used would then be included in the $params section as shown further below.
Here you can see a sample of the payload that Sematext would send to the Webhook API that uses $params: