Back to Blog

Mastering Email Alerts: Step-by-Step Setup in the Kaa Cloud

Tutorial

Continuous monitoring and immediate response are key components of the Internet of Things. KaaIoT offers a robust alert system to help you achieve this. The platform enables proactive management and quick response to various conditions.

In this tutorial, we will go over the steps to set up alerts in the Kaa IoT platform, including how to choose monitoring settings and configure additional actions. It will walk you through the steps to set up email alerts in the Kaa Cloud, which allows you to monitor critical events and take appropriate actions.

Where can IoT alerts be applied?

  • Industrial equipment monitoring
  • Smart building management
  • Environmental monitoring
  • Fleet management

Prerequisites

  • Active account in the Kaa IoT Cloud.
  • Ensure you have a connected device or simulator and have published some data, whether metadata or telemetry values.

Creating alert

To begin setting up alerts, you need to create Alert Settings where you will specify the trigger, condition, and actions to be taken when the alert is activated or resolved.

1. Open Alerts -> Alert Settings: This page allows you to manage alert settings, where you can create, update, delete, or disable alerts.

2. Hit "Add Alert": Start the process of setting up a new alert.


Mastering Email Alerts

Setting up an alert involves three required steps:

Mastering Email Alerts

Step 1: Select monitoring settings

This step is where you define the trigger that your alert should react to.

1. Choose the application: Select the application where your devices are created. Optionally, select a specific endpoint if you want to track it. By default, all endpoints in the specified application are tracked.

2. Select the trigger: Decide when the alert should be triggered. There are three options:

Step 2: Define alert condition
  • Schedule: Specify the interval for checks or use a cron expression.
  • Metadata change: Trigger the alert whenever metadata changes.
  • Time series change: When specific time series names change, the alert is activated.

Step 2: Define alert condition

Here, you define the conditions under which the alert will be activated.

Step 2: Define alert condition

1. Condition builder: Use this visual tool to create conditions based on user-friendly rules. Specify the value source, type, operator, and value to compare.

2. Script-based conditions: For advanced users, you can use scripts to define conditions.

3. Geofence conditions: Set up geofencing conditions if applicable.

Read also: Geofence Alerts in Kaa: Advanced Functionality Tutorial

Step 2: Define alert condition

When you select the required fields, you’ll see the current value that your device reports, and the next step is activated.

In this section, you can see the current value, which is now ‘false’ in our example. You can change the endpoint by clicking on the chip to see the current value for another endpoint. You can also click on Show expression to see how the actual script will look, which will be used under the hood.

Step 3: Configuring alert data

This step involves defining the severity, type, and message of the alert.

Step 3: Configuring alert data

1. Severity: Set the severity level of the alert. It can be one of the predefined values that you can pick or write a script to choose the severity level based on the value. If you aren’t very familiar with JS coding, you can click on Show expression from the previous step and reuse it for the logic here.

2. Type and message: Define the type of alert and compose a message. Scripting is supported for advanced cases, where you can decide on the type of alert or place some dynamic values in the message. As before, the Show expression button can be helpful to quickly bootstrap the script.

Optional: Additional actions

This step provides configurations to send notifications via email, webhook, or Slack when the alert is activated or resolved.

Optional: Additional actions

1. Email notifications: Specify when to send emails (on activation or resolution), recipients, subject, content type (text/HTML), and provide templates for messages.

The selected area on the screenshot below shows that you can choose when to send email, when alert is activated or resolved, or both. By default, it will send on both.

Optional: Additional actions

2. Webhook notifications: Set up webhook notifications for alerts.

3. Slack notifications: Configure Slack notifications for real-time alerts.

💡Note: Before creating the alert, the system will prompt you to add the email addresses as registered recipients. They must approve the receiving messages to get email notifications.

Final steps

Now, you are ready to create the alert.

1. Name your alert and make sure it's meaningful.

2. Click "Create" to finalize the alert setup.

Monitoring alert state

3. Monitoring alert state: Monitoring Alert State: Find and click on your Alert Setting from the list to enter the Alert Setting details page. Here, you can see all alerts created from your settings and check the Traces to monitor if the Alert Setting works fine. We can see the alert and in Traces, we can verify that everything executed without errors, with rules and actions showing an Outcome of Success. If an error occurs, you can see it here and address it promptly.

Monitoring alert state

Conclusion

Kaa alerts is an easy tool to set up a reliable monitoring system for your IoT project. By following the steps from the tutorial, you can customize alerts to fit the unique needs of your operations. The solution facilitates industrial equipment monitoring, smart building management, environmental tracking, and fleet management, among many other IoT use cases.

Why does this matter?

Real-time alerts are essential for proactive management. Alerting helps respond immediately to potential issues, minimize downtime, prevent damage, and optimize performance. With Kaa, you can set specific conditions and actions. In such a way, you can ensure that your team is always ready to act when necessary.

Why Kaa IoT platform?

  • Flexibility. Kaa allows you to set alerts based on a variety of triggers, including scheduled intervals, metadata changes, and time series changes.
  • Customization. You can define precise conditions and actions for each alert, tailoring them to your specific needs.
  • Real-time monitoring. Never miss critical events with real-time notifications via email, webhook, or Slack.
  • Ease of use. Even users with minimal technical expertise can create, manage, and monitor alerts with the intuitive interface.

Stay tuned for more tutorials and guides on how to maximize the potential of the Kaa IoT platform. If you have any questions or need further assistance, don’t hesitate to reach out to our support team.

Feel the benefits of Kaa Cloud on yourself

Related Stories

Step-by-Step Tutorial: Connecting TEKTELIC BREEZE to Kaa

TEKTELIC BREEZE and Kaa integration provides actionable insights...

Tutorial: Upload & Manage Files from the Device on Kaa Cloud

Kaa Cloud enables file uploads directly from your IoT devices...

Tutorial: Connecting MikroTik Knot LR 8 Kit to Kaa IoT platform

This tutorial will show you how to use the Kaa Cloud for effective IoT device management...

Tutorial: Using the History Player Widget in the Kaa Cloud

This tutorial will teach you how to set up and use the history player widget in the Kaa Cloud.