Alerts and Notification > Rule-Based Alerts Use Cases
1. Getting Started with vuSmartMaps™
3. Console
5. Configuration
6. Data Management
9. Monitoring and Managing vuSmartMaps™
This section explains common use cases encountered in configuring alert rules.
Users often want to create alert rules with multiple related conditions to ensure more meaningful and actionable notifications.
For instance, instead of having separate alerts for server resource usage and application service turnaround time, it’s more effective to trigger an alert when both conditions are met. Here’s how to set up such an alert rule:
The Server Resource Usage DM used for Condition 1 can include multiple metrics that monitor various health parameters like CPU usage, memory usage, disk I/O, etc. This way, you can create comprehensive alerts that take multiple factors into account.
The default system behavior is to generate notifications when both conditions are met (R1 and R2).
If you prefer to trigger an alert when either the turnaround time is high or server resource usage is high, you can configure an OR condition (R1 or R2) in the evaluation script.
This way, an alert generated for this rule will list the individual condition metrics and their interpretation.
In a default alert rule with multiple conditions, the system generates alerts when all conditions are met (e.g., R1 and R2 and R3 and R4).
If you want the system to trigger an alert when any of the conditions are true, you can configure the evaluation script with an OR condition, like R1 or R2 or R3 or R4.
You can also create custom evaluation logic by adjusting the evaluation script formula. For example, “R1 and (R2 or R3) and not R4” would generate an alert if R1 is true and either R2 or R3 is true, but R4 is not true.
In this example, suppose you want notifications when either the connectivity status is “Down” or the connectivity latency exceeds 100 ms.
To achieve this, you would create two conditions: one using the Data Model for connectivity status and another for the Data Model for latency. The default behavior would be to generate alerts when both conditions are met.
To make the system trigger an alert when either condition is true, you can adjust the evaluation script to use an OR condition, like R1 or R2. This way, you’ll receive notifications when either of the specified conditions is met.
If you’re only interested in receiving notifications when a component’s state changes to an undesired state, you can disable the alarm mode in the rule configuration. For instance, if you want to be notified only when the connectivity status changes to “Down,” you can achieve this by disabling the alarm mode in the rule.
Once alarm mode is disabled, the system will generate notifications at regular intervals (by default, every 5 minutes) as long as the connectivity status is down.
Throttling can be enabled if the frequency of updates is to be changed. Please note that there will be no clear alarm generated and if the condition clears, it will just stop generating notifications.
In cases where vuSmartMaps is used to monitor the success rate of various transactions in an E-commerce application, and you want to receive notifications when the success rate of any transaction type falls below 85%, you can configure summarized notifications.
This will help you get a comprehensive alert when multiple related conditions occur.
Transaction Type | Success Rate | Action Required |
Login | 92% | No Action |
Checkout | 81% | Alarm |
Payment | 76% | Alarm |
Search | 93% | No Action |
User Settings | 95% | No Action |
Review | 87% | No Action |
Instead of receiving individual notifications for each transaction type, you can configure a consolidated notification that includes details of all transaction types with low success rates. This can be done by adjusting the notification level in the advanced configuration settings.
Some transaction types are experiencing lower success rates than usual. Here are the current success rates for each transaction type:
Transaction Type | Success Rate |
Login | 92% |
Checkout | 81% |
Payment | 76% |
Search | 93% |
User Settings | 95% |
Review | 87% |
In alarm mode, email notifications are sent when the alarm becomes active, and again when it’s cleared.
These notifications also update when the alarm’s severity changes. However, there are situations where you might want to escalate notifications if the alarm condition remains active for an extended period.
The example below demonstrates an evaluation script that sends an escalation email notification to one email group after 2 hours of alarm activation and another escalation email to a different group if the alarm persists for over 6 hours.
This way, you can implement multi-tiered escalation strategies for critical alerts.
if R1: # alarm is to be marked as active RESULT = True duration = META_DATA.get(‘’duration’, 0) cur_time = datetime.datetime.now(datetime.timezone.utc) last_email_update = (cur_time – META_DATA.get(‘EmailAlerter_last_update’, cur_time)).total_seconds() if duration >= (2*60*60) and duration <= (6*60*60) and last_email_update > (1*60*60): # If the alarm has been active for more than 2 hours and we have # not sent an email update recently ALERT_CHANNELS.append(‘alertByEmail’) EMAIL_GROUP_LIST = [‘group1’] # Force update. META_DATA[‘force_update’] = True elif duration > (6*60*60) and last_email_update > (3*60*60): # If the alarm has been active for more than 6 hours and we have # not sent an email update recently ALERT_CHANNELS.append(‘alertByEmail’) EMAIL_GROUP_LIST = [‘group2’] META_DATA[‘force_update’] = True |
In alarm mode, the system sends email notifications when the alarm activates and when it’s cleared. However, there are instances where operators don’t want to receive clear notifications via email, SMS, or WhatsApp.
You can configure this by adjusting the settings in the Advanced Configuration.
This allows you to choose specific channels for which you want to avoid clear notifications, giving you more control over the alerts you receive.
Channel | Configuration |
Email Channel | EmailAlerterClear |
SMS Channel | SmsAlerterClear |
WhatsApp Channel | WhatsappAlerterClear |
For example, if clear notification emails are not required over email, the following configuration is to be specified in Advanced Configuration.
EmailAlerterClear: false |
It should be noted that the default value of this configuration is true.
Consider the E-Com application which has application nodes running on 4 systems. Let us consider a case where an alert notification is to be generated if the total success rate for transactions of the Ecom application is below 85% or the success rate of transactions handled by individual application nodes is below 85%.
The alert rule for this requirement will use two conditions with two separate Data Models.
Rule 1 ⇒ Total number of transactions with a threshold of> 85%(No grouping)
Rule 2 ⇒ Total number of transactions with a threshold of> 85% (Grouped by application node name)
By default, the system considers the largest grouping level in the conditions as the grouping level at which notifications are to be generated. Hence, in the above example, notifications will be generated for each server separately.
If the requirement is to have the alert generated at an aggregate level, then notification_level settings in advanced configuration can be used to have the notification generated at the 0th level. i.e. without any grouping.
There are a few conditions in which an alarm can get stale, such as if we are not getting data for a bucket (this can happen due to some genuine issue on the target side, or some data store issues because of which we are not able to get data into ES or not able to query ES) whose alarm has already been generated but not cleared yet, that alarm will stop updating and will not clear as well. Such an alarm is called a stale alarm.
There is a default cleanup for such stale alarms which will happen after 24 hours, i.e., If we do not get the data for a bucket for 24 hours, we will clear the stale alarm.
If required this clean-up duration can be reduced or increased as per the requirement for each alert rule, using advanced configuration.
In the advanced configuration of alerts, there is a setting available where we can set up the stale alarms’ clear duration. This is in minutes. Stale alarms will clear after the time configured here.
Browse through our resources to learn how you can accelerate digital transformation within your organisation.
VuNet’s Business-Centric Observability platform, vuSmartMaps™ seamlessly links IT performance to business metrics and business journey performance. It empowers SRE and IT Ops teams to improve service success rates and transaction response times, while simultaneously providing business teams with critical, real-time insights. This enables faster incident detection and response.