BGPalerter supports user groups. With user groups you can:
- Notify only specific users about specific prefixes.
- Notify only specific users about specific type of alerts.
By default all communications will use the default group, so it is not mandatory to configure any user group. Note that the default group is used also for administrative and error communications. Hence, it is important to set user groups in case you want to monitor resources of your customers and you want to forward to them the alerts without sending them administrative communications.
Example of configuration.
In prefixes.yml you can associate different groups to different resources.
165.254.225.0/24:
description: my description 1
asn: 2914
ignoreMorespecifics: false
ignore: false
group: group1
165.254.255.0/24:
description: my description 2
asn: 2914
ignoreMorespecifics: false
ignore: false
group: group1
192.147.168.0/24:
description: my description 3
asn: 15562
ignoreMorespecifics: false
ignore: false
group: group2
options:
monitorASns:
2914:
group: group1
15562:
group: group2
In config.yml you have to specify the groups in the report modules.
reports:
- file: reportEmail
channels:
- hijack
- newprefix
params:
notifiedEmails:
default:
- [email protected]
group1:
- [email protected]
- [email protected]
group2:
- [email protected]
- file: reportSlack
channels:
- hijack
- newprefix
params:
hooks:
default: _SLACK_WEBOOK_FOR_ADMIN_
group1: _SLACK_WEBOOK_FOR_GROUP1_
group2: _SLACK_WEBOOK_FOR_GROUP2_
It's essentially the same configuration of above, except you have to duplicate report components, each serving a subset of the channels.
- file: reportSlack
channels:
- hijack
params:
hooks:
default: _SLACK_WEBOOK_FOR_ADMIN_
group1: _SLACK_WEBOOK_FOR_GROUP2_
- file: reportSlack
channels:
- newprefix
params:
hooks:
default: _SLACK_WEBOOK_FOR_ADMIN_
group2: _SLACK_WEBOOK_FOR_GROUP1_
You can also split the notification across different reporting mechanism based on their type.
reports:
- file: reportEmail
channels:
- newprefix
params:
notifiedEmails:
default:
- [email protected]
group1:
- [email protected]
- [email protected]
- file: reportSlack
channels:
- hijack
params:
hooks:
default: _SLACK_WEBOOK_FOR_ADMIN_
group2: _SLACK_WEBOOK_FOR_GROUP2_