If you're using https://github.com/nttgin/BGPalerter and want to send alerts to a discord channel, which isn't listed in the documentation at https://github.com/nttgin/BGPalerter/blob/main/docs/report-http.md you can enable it as follows:
In volume/config.yml the default reporting section on setup contains:
reports:
- file: reportFile
channels:
- hijack
- newprefix
- visibility
- path
- misconfiguration
- rpki
You can expand it to match the following, setting an appropriate username and discord webhook URL as follows:
reports:
- file: reportFile
channels:
- hijack
- newprefix
- visibility
- path
- misconfiguration
- rpki
- file: reportHTTP
channels:
- hijack
- newprefix
- visibility
- path
- misconfiguration
- rpki
params:
isTemplateJSON: true
showPaths: 0
templates:
default: '{"username":"<USEFUL NAME>","content":"${channel}: ${summary}"}'
headers:
Content-Type: application/json
hooks:
default: "https://discord.com/api/webhooks/<webhook_id>/<webhook_token>"
But first make sure you've created a channel, and enabled the webhook for that channel!!!