![]() |
2 лет назад | |
---|---|---|
.. | ||
Makefile.inc | 5 лет назад | |
README.md | 2 лет назад |
As part of its AWS suite, Amazon provides a notification broker service called 'Simple Notification Service' (SNS). Amazon SNS works similarly to Netdata's own notification system, allowing to dispatch a single notification to multiple subscribers of different types. While Amazon SNS supports sending differently formatted messages for different delivery methods, Netdata does not currently support this functionality. Among other things, SNS supports sending notifications to:
For email notification support, we recommend using Netdata's email notifications, as it is has the following benefits:
Read on to learn how to set up Amazon SNS in Netdata.
Before you can enable SNS, you need:
awscli
)./
as a home directory. The setup depends on the distribution, but /var/lib/netdata
is the recommended directory. If you are using Netdata as a dedicated user, the permissions will already be correct.To enable SNS:
Run the following command as the user Netdata runs under:
aws configure
Enter the access key and secret key for accessing Amazon SNS. The system also prompts you to enter the default region and output format, but you can leave those blank because Netdata doesn't use them.
Specify the desired topic ARN as a recipient, see SNS documentation.
Optional: To change the notification format for SNS notifications, change the AWSSNS_MESSAGE_FORMAT
variable in health_alarm_notify.conf
.
This variable supports all the same variables you can use in custom notifications.
The default format looks like this:
AWSSNS_MESSAGE_FORMAT="${status} on ${host} at ${date}: ${chart} ${value_string}"