SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Alerts in SAP HANA Database and Data Lake

Learn how to configure and view SAP HANA Cloud alerts and how the SAP Alert Notification service for SAP BTP can be used to send alerts to other channels.

Overview

🎓 beginner 30 min. SAP HANA CloudBeginnerSAP HANA Cloud SAP HANA DatabaseSAP Alert Notification Service For SAP BTPSAP HANA Cloud Data Lake

You will learn

  • โœ”An overview of alerts
  • โœ”How to configure, trigger, and access alerts
  • โœ”How to use the SAP BTP Alert Notification service (ANS) to be notified of alerts

Prerequisites

Prerequisites

  • Access to a SAP HANA Cloud instance.

Steps

Intro

Alerts can inform you of potential issues before they occur, such as when the number of rows in a SAP HANA database table is approaching 2 billion, or of an issue currently occurring, such as a user in a data lake Relational Engine is locked out.

You can find details of any raised alerts through the alerts app in SAP HANA Cloud Central or by using the REST API (SAP HANA database). This is known as a pull approach.

Alternatively, alert details can be pushed to several configured channels such as email, Slack, or Microsoft Teams. A list of built-in events can be found at SAP HANA Cloud Service Database Events.

Access help from the SAP community or provide feedback on this tutorial by navigating to the “Feedback” link located on the top right of this page.


Step 1 Examine SAP HANA Cloud, HANA Database alert definitions
โ€”

In this step, SAP HANA Cloud Central will be used to examine alert definitions.

  1. Open Alerts from HANA Cloud Central.

    Open Alerts
    Open Alerts

    SAP HANA Cloud Central has an alerts app to view triggered alerts. It displays alerts for all instances in a subaccount and additionally displays additional alerts that do not originate from the SAP HANA embedded statistics server (ESS). Events corresponding to ESS alerts have an alert ID.

  2. The three alerts that will be triggered in step 3 of this tutorial are HDBCSTableRecordCount, HDBLongRunningStatement, and HDBTestAlert.

    You can find these alerts by selecting Configure Alert Rules.

    Configure Alert Rules
    Configure Alert Rules

    Then select an instance and search for the alerts.

    Configure Alert Rules Search
    Configure Alert Rules Search

    Notice that alerts have a name, description, and categories.

    The categories are shown below.

    SAP HANA Database CategoriesDescription
    ScheduleChecks run at a fixed point in time, such as once a day
    IntervalChecks run repeatedly on a recurring schedule, such as every hour
    ThresholdTriggered when a measured value crosses a defined limit, such as disk usage exceeding 90%
  3. Alerts may have threshold levels. As an example, long-running statements, has its threshold values set to 60 minutes for Warning, 45 minutes for Notice, and 30 minutes for Information. These will be set to much lower thresholds of 3, 2 and 1 minutes in step 3.

    long running statement updated thresholds
    long running statement updated thresholds

  4. Alert checks are scheduled to run at a specified interval and can be enabled or disabled. For example, record count of non-partitioned column-store tables (HDBCSTableRecordCount) has an interval value of 1 hour, meaning that this check is performed each hour and is currently enabled.

    enabled and interval
    enabled and interval

  5. Alerts also have a retention period. Once triggered, depending on their type, they will remain for a set duration such as 14 or 42 days.

For additional details, consult Alerts in SAP HANA Cloud in the SAP HANA Cloud administration guide.

Step 2 Apply alert rules to multiple instances using alert rule sets
+
Step 3 Trigger alerts in a SAP HANA database
+
Step 4 View SAP HANA database alerts using the alerts app
+
Step 5 Trigger an alert in SAP HANA Cloud data lake
+
Step 6 Set up email notification when an alert occurs
+
Step 7 Set up notification with a Microsoft Teams channel
+
Step 8 Set up notification with a Slack channel
+
Step 9 Knowledge check
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Examine SAP HANA Cloud, HANA Database alert definitions 2. Apply alert rules to multiple instances using alert rule sets 3. Trigger alerts in a SAP HANA database 4. View SAP HANA database alerts using the alerts app 5. Trigger an alert in SAP HANA Cloud data lake 6. Set up email notification when an alert occurs 7. Set up notification with a Microsoft Teams channel 8. Set up notification with a Slack channel 9. Knowledge check

Learn more →