Alerting and notification in IBM Cloud Monitoring
Alerting in IBM Cloud Monitoring
Alerts are a core feature of IBM Cloud monitoring. Detailed guidance on configuring alerts can be found in IBM Cloud Docs Monitoring : Configuring an alert by using the alert editor and IBM Cloud Docs Monitoring: Threshold alerts.
Alerts are triggered by user-defined event conditions, such as when specific metrics exceed configured threshold values.
Example of an alert for 'sap_start_service_processes'
Metrics of SAP processes The metric sap_start_service_processes reports the operational status of various SAP processes including:
hdbnameserver, hdbindexserver, msg_server, hdbdiserver, hdbdaemon, hdbpreprocessor, icman, and others
. Each metric value corresponds to the current state of an individual process, as defined in the following table.
Value | State |
---|---|
1 | Stopped |
2 | Running |
3 | Pending |
4 | Error |
Example of configuring an alert
This example demonstrates how to configure an alert that triggers when the status of any SAP process changes to 4
(Error).
Prerequisites
Ensure that a monitoring dashboard named SAP System is already set up and receiving relevant metrics. Follow the steps outlined in IBM Cloud Docs Monitoring: Configuring an alert by using the alert editor, by using the provided alert specifications.
Creating the alert
-
In the IBM Cloud Monitoring UI of the selected region, select Alerts and click + New Alert.
-
Select the alert type: Threshold.
-
Name the alert:
- Click the default alert name and enter a descriptive name, such as SAP process status error alert.
-
In the Define Condition: section:
- Select sap_start_service_processes as Metric:
- Click the Metric selection box.
- Click Load More to display all available metrics.
- Select sap_start_service_processes from the list.
- Select sap_start_service_processes as Metric:
-
In the Define When to Alert You: section:
- Configure the alert condition as follows:
- Click option and select the comparison parameter
=
. - Select
4
as the value parameter (corresponding to theError
state). - Select
1
as number scale. - Make sure that the query preview shows:
avg(avg_over_time(sap_start_service_instances[59s])) = 4
.
- Click option and select the comparison parameter
- Configure the alert condition as follows:
-
In the Settings: section:
- Alert Severity: Select
High
. - Link to Dashboard: select an existing custom SAP system dashboard.
- Alert Severity: Select
-
Click Save to finalize the alert configuration.
All configured Alerts are listed in the Alert Dashboard.
For more information about managing alerts, refer to the IBM Cloud Docs Monitoring Alerts API
Configuring notifications for alert events
You can configure alert notifications by creating a notification pipeline that includes a notification event service. Detailed instructions are available in the IBM Cloud Docs Monitoring tutorial: Sending email notifications to IBM Cloud Event Notifications.
Supported notification destinations include email, SMS, Pager, Slack, Teams, and others. For a complete list, refer to IBM Cloud Docs Monitoring: Working with notification channels.
Configuring email notifications for alert events
To configure email notifications, follow the steps that are outlined in IBM Cloud Monitoring: Sending email alerts by using IBM Cloud Event Notifications. Do not use the Lite pricing plan for the Event Notification service instance, as it is limited to 30 days. Instead, select the Standard pricing plan to ensure continued service availability.
Ensure that all intended email addresses are added to the subscriptions list and are acknowledged, as described in IBM Cloud Docs Monitoring: Notification email subscription.
After you configured the notification service, you can associate one or more notification channels with the alert that you defined in your monitoring instance.
- In the IBM Cloud Monitoring UI, click Alerts in the side menu.
- Select the
Alerts
option. - Select your previously configured alert, for example
SAP process status error alert
. - In the Notifications: section, choose one of the available notification channels.
- Optional: Select the
Get notified every
slider control to receive alerts at selected time intervals. - Click
Save
to apply the updated alert configuration.