This section outlines the procedure for setting up the notifications about database values exceeding preset limits. Such notifications can be received in one of the following ways—by email or via a Slack channel. Additionally, you can configure alerts in Grafana.
Visualizing the outcomes of the analytics as alerts
Configuring email notifications
To configure email notifications, proceed as follows:
- Specify the credentials (email address, host) of the SMTP server
- Change the alertFrom value in the index.js file to a required limit value
Once you have completed this configuration, you will start getting emails, whenever some of the values exceed a specified limit:
![](https://static.packt-cdn.com/products/9781788298599/graphics/assets/2f17d766-6c96-497a-818d-2b9040659d79.png)
An alert displayed in a mail client