Skip to main content

Metric Policy

Overview

The Metric policy can be configured to send out an alert whenever a metric of a monitor goes above or below a certain threshold value. Let us consider a scenario where this can policy can be used. The metric policies can further be divided into:

  • Threshold Alert
  • Baseline Alert

Threshold Alert

Use-Case

Suppose, you want to monitor the performance of an EC2 instance in your AWS cloud infrastructure. You need Motadata AIOps to raise an alert whenever the metric measuring the CPU percentage goes above a certain threshold value. You can create a metric policy to do the same.

Go to Menu, Select Settings . After that, Go to Policy Settings . Select Metric/Log/Flow policy. The list of the created policies is now displayed.

Click on to start creating a policy. From the panel on the left side of the screen, click on the Metric tab to start creating a metric policy. The interface to create a Metric Policy is now displayed.

Configuring Threshold Metric policy

Enter the details of the following parameters to create a threshold metric policy:

FieldDescription
Policy NameEnter a unique name of the policy you want to create.
TagEnter a name to logically categorize the policy. You can quickly and easily identify a policy based on the tag assigned to it.
Threshold Alert/Baseline AlertSelect the parameter as per the type of policy you want to create. In this case, we will select Threshold Alert to move forward.

Set Conditions

FieldDescription
CounterSelect the metric for which you want to create the policy. Click on the dropdown to view the available options. You can also search the specific metric you are looking for from the search bar.
Source Filter

- Select Monitor if you want to create the policy for specific monitor(s).

- Select Group if you want to create the policy for a group of monitors. In case you create the policy for a group, it is configured for all the monitors present in the group individually.

- Select Everywhere if you want to create the policy for all the monitors created in the system. This option is selected by default.

SourceSelect the specific Monitor, Group, or the Tag for which you want to create the policy. This dropdown will show results based on the option you have selected in the previous option. You can leave this field blank if you have selected 'Everywhere' in the previous option.
Critical/Major/WarningKindly use these fields to set the criteria under which the alert will be triggered. Here, you can also decide the alert severity based on the conditions you set.

Assumption Based Scenario

In the context of a Threshold alert, consider the following scenario:

  • Abnormality Occurrence: Set to 3, indicating that the threshold breach should happen for three consecutive occurrences.

  • Notify if Threshold Value Breach Within: Configured as 5 Minutes, defining the time window within which the consecutive threshold breaches must occur.

When threshold is breached, the alert will trigger with varying severity levels:

  • Warning: Triggered when the CPU utilization percent goes above 60% thrice consecutively within 5 minutes.

  • Critical: Triggered when the CPU utilization percent goes above 80% thrice consecutively within 5 minutes.

note

In case the metric in the policy crosses the value for multiple severity thresholds, the alert will be raised with the highest severity applicable. As shown in the diagram above, values above 80% CPU utilisation qualify for both Warning and Critical severity. In this case, the alert will be raised with Critical severity because it is the highest qualified severity.

We will discuss the other conditions for the alert to be triggered now.

FieldDescription
Notify if Threshold value breach withinSpecify the time-period during which the policy will check the for the metric you selected above. This is the evaluation window in which the AIOps will check if the polling value crosses the threshold values configured in the policy.
Abnormality occurrenceSpecify the number of times the conditions set within the policy should be met consecutively within the evaluation window specified in the previous field.
Auto ClearKindly enter the time in which you want the alert to be cleared irrespective of any other conditions.

Notify Team

FieldDescription
NotifyThere are two ways you can populate this field:
  • Username of registered user in MotadataAIOps (The alert notification will be sent over email and SMS to the mapped email address and phone number respectively).
  • Any email address (In case the recipient whom you wish to notify is not a registered user, you can enter an email address).
  • If severity isSelect the severity level using individual checkboxes in the dropdown.You can select multiple, all, or a single option as per your requirement. You can also have different recipients notified at different severity levels. For instance, you can notify johndoe@motadata.com when severity level hits Critical and send an alert notification to janedoe@motadata.com when severity level is Major.
    Play SoundActivate this toggle to enable sound notifications when an alert is triggered.
    If Severity isChoose the severity level at which the sound notification should be triggered. This option becomes visible only when the Play Sound toggle is switched ON.
    RenotificationTurning on the toggle will resend the alert at a specific interval defined by the user if the alert severity is not changed for the time specified. If turned off, Motadata AIOps will not renotify about the alert.
    RenotifySimilar to Notify Team field, enter the username or email address of the recipient. Also choose a preset duration for renotification along with the severity level at which they system will renotify you if the alert severity is not changed.
    Do not renotify if acknowledgedIf the toggle is turned on, Motadata AIOps will not send a renotification to the recipient if they mark the alert as acknowledged.

    Take Action

    FieldDescription
    Action to be takenSelect a runbook from the dropdown to be executed when the alert is triggered.
    Create NewSelect this button to start creating a new runbook which you might want to assign to the policy you are creating.

    Declare Incident

    FieldDescription
    When Alert Severity isSelect an Alert severity from the dropdown.
    Select Integration Profile to TriggerChoose an Integration profile to be executed from the dropdown when the chosen alert severity is reached.
    Create Integration ProfileSelect this button to start creating a new Integration profile that you might want to assign to the policy you are creating.

    You can click on to define a new Alert severity and Integration Profile combination. You can have separate Integration profile triggered at different levels of Alert severity.

    Select the Create Policy button to create the policy based on the details entered.

    Select the Reset button to erase all the current field values, if required.

    Now let us look into the Baseline Alert.