Skip to main content

Alert Trigger Policies

Use alert trigger policies to define, in one place in Virtana Platform, which conditions raise alarms on your Infrastructure Observability (IO) appliances.

An alert trigger policy is a rule that you create in Virtana Platform and apply to one or more IO appliances. Virtana Platform syncs the rule to each appliance. The IO appliance evaluates the rule against the entities it monitors, such as ESX hosts, virtual machines, storage arrays, and Windows hosts. When the condition is true, IO raises an alarm at the severity that you define, and the alarm appears in Virtana Platform as an alert.

You create and manage policies on the Alert Trigger page. Virtana Copilot, an AI assistant on the page, builds each policy from a plain-language description. You can refine the policy in conversation with Copilot, or edit the generated YAML before you save it.

Alert trigger policies help you do the following:

  • Define alarms in one place. Alert Intelligence and Alert Response policies act on alarms that IO already sends. Alert trigger policies define which alarms IO raises in the first place.

  • Use one format. Write each rule once in a common format, instead of in the rule format of each product.

  • Apply the same rule to many appliances. Apply one policy to several IO appliances, instead of exporting rules from one appliance and importing them on another.

  • Detect sustained performance problems, such as high CPU utilization on an ESX host for 10 minutes.

  • Detect state changes, such as an ESX host that is powered off.

  • Combine conditions on related entities, such as a host under CPU pressure whose virtual machines have high CPU ready time.

How alert trigger policies work with IO

  1. You create a policy in Virtana Platform and select the IO appliances (sources) that it applies to.

  2. Virtana Platform syncs the rule to each source. The Source column on the Alert Trigger page shows the sync status for each source.

  3. In IO, the rule appears as a read-only, platform-managed rule. You can't edit, turn off, or delete it in IO.

  4. IO evaluates the rule and raises alarms when the condition is true.

  5. The alarms are sent to Virtana Platform, where they appear as alerts.

Note

Sync is one way, from Virtana Platform to IO. To change a rule, edit the policy in Virtana Platform. The updated rule syncs to its sources.

In IO, a synced rule appears in the Alarm Rule List as a read-only, platform-managed rule. For more information, see Viewing Your Configured Alarms.

Before you begin

Important

If Platform Data Access is off, or REST API calls isn't selected, you can still create policies in Virtana Platform, but they don't sync to that IO appliance.

Go to the Alert Trigger page

  1. In the navigation pane, click Governance.

  2. Expand Alert Policies.

  3. Click Alert Trigger.

    The Alert Trigger page opens and shows the list of policies. The Alert Policies menu also contains Alert Intelligence and Alert Response.

    Governance menu with Alert Policies expanded

Alert Trigger page reference

The Alert Trigger page has a toolbar at the top and a policy table below it.

Alert Trigger page

Toolbar

Control

Description

New Policy

Opens the Copilot : Alert Trigger Policy pane, where you create a policy with Virtana Copilot.

Delete

Deletes the selected policies. Unavailable until you select at least one policy.

Help icon

Opens the help topic for this page in a new browser tab. The tooltip reads Help for this page.

Policy table

Column

Description

Check box

Selects the policy. The check box in the header selects all policies.

Name

The policy name. Click the name to open the policy details.

Description

A summary of the condition, severity, entity type, and violation window, for example "triggers a WARNING alert on ESXHost when host_cpu > 90". Copilot generates this text.

Source

The IO appliances that the policy applies to, or All Sources. Each source shows a sync status icon.

Last Edit Date

The date and time of the most recent change to the policy.

State

A toggle that turns the policy on or off.

Filter the table

The row under the column headers contains filters:

  • Name and Description: Enter text to show matching policies.

  • Source: Select one or more source IP addresses from the list.

Source sync status

To see whether a policy has reached a source, point to the icon next to the source.

Icon

Status

Meaning

Green check mark

Synced

The policy is synced to the source.

Gray circle

Not Synced

The policy isn't synced to the source yet.

Red X

Sync Failed

The sync failed. The tooltip shows the reason, for example "Alert trigger policy <ID> has no severity".

Sync status tooltips: Synced, Not Synced, and Sync Failed

Create an alert trigger policy with Virtana Copilot

Describe an alert condition in plain language, and Virtana Copilot builds the alert trigger policy for you to review, refine, and save.

  1. On the Alert Trigger page, click New Policy.

    The Copilot : Alert Trigger Policy pane opens on the right. Copilot asks you to select sources and a rule type.

    Copilot : Alert Trigger Policy pane
  2. In the Sources list, select the sources that the policy applies to.

    By default, All Infrastructure Observability (IO) Sources is selected. To apply the policy to specific sources only, clear All Infrastructure Observability (IO) Sources and select one or more source IP addresses. You can search the list.

    Sources list
  3. When Copilot asks What kind of alert rule would you like to create?, select Metric, Property, or both.

    Copilot shows sample conditions for the types that you select. The selection only changes the samples. Whatever you select, you can describe metric conditions, property conditions, or both.

    Rule type selected, with sample alert conditions
  4. In the Message Copilot box, describe the alert condition, or click a sample condition to copy it into the box and edit it.

    Include the metrics, properties, or both, the threshold, the duration, the severity, and the policy name. For tips, see the Describe alert conditions for Copilot section.

    Alert condition in the Message Copilot box
  5. Click the send icon.

    If a value is missing or unclear, Copilot asks for it or suggests options. Select a suggestion or type the value, and then click the send icon again. When Copilot has everything that it needs, it generates the policy. The pane widens, Copilot shows a one-line summary, and the policy definition appears in the editor on the right.

    Generated policy summary and definition
  6. Review the summary and the policy definition. To change the policy, send a follow-up message, such as make the threshold 95%, or edit the YAML in the editor.

  7. Click Save.

Note

Save becomes available only after Copilot generates a policy. If you click Cancel before you save, Virtana Platform discards the policy and the conversation.

Verification: The policy appears on the Alert Trigger page. In the Source column, check that each source shows Synced. The rule then appears on each IO appliance as a read-only, platform-managed rule. See Viewing Your Configured Alarms.

Example: Create a metric policy for ESX host CPU

This example raises a WARNING alarm when ESX host CPU utilization stays above 90% for 10 minutes. Select Metric in step 3, and enter:

Alert when ESX host CPU utilization is above 90% for 10 minutes with warning severity and policy name as "Test Policy 01"

Copilot returns this summary:

Test Policy 01: triggers a WARNING alert on ESXHost when host_cpu > 90, sustained for 10m (100% of evaluations violating), clearing after 10m of normal behavior.

Copilot generates this policy definition:

name: Test Policy 01
severity: WARNING
scope:
  identity:
    type: ENTITY
    filter:
      attribute: entityType
      operator: EQUALS
      value: ESXHost
    labelSet:
    - uid
    - entityType
    - name
data:
- alias: host_cpu
  scope: identity
  selection:
    attributeType: Metric
    id: Server_cpu_usage
evaluation:
  expression: host_cpu > 90
violation:
  window:
    temporal:
      onDuration: 10m
      offDuration: 10m
      threshold:
        percentage: 100
description: 'Test Policy 01: triggers a WARNING alert on ESXHost when host_cpu > 90, ...'

Example: Create a property policy for a powered-off ESX host

This example raises a CRITICAL alarm as soon as an ESX host is powered off, with no violation window. Select Property in step 3, and enter:

Raise a CRITICAL alert on ESX hosts when the power state is poweredOff, no window, named 'ESX host powered off'

Copilot returns this summary:

ESX host powered off: triggers a CRITICAL alert on ESXHost when power_state == 'poweredOff'.

In the generated policy, the data section uses attributeType: Property with id: PowerState, the expression is power_state == 'poweredOff', and there's no violation section, because the alarm is raised on the first evaluation that matches.

Example: Create a policy that combines metrics and a property

This example raises a CRITICAL alarm when a virtual machine has high CPU and memory utilization for 10 minutes and VMware Tools isn't installed. In step 3, select both Metric and Property, and enter:

Alert when VM CPU utilization is above 80% and memory utilization is above 80% for 10 minutes, and VMware Tools is not installed, with CRITICAL severity and policy name "VM health"

Copilot generates one policy that contains the metric conditions and the property condition.

Describe alert conditions for Copilot

Copilot builds a policy from the description that you type in the Message Copilot box. You can give all the details in one message, or start with a few and answer Copilot's questions. If a required value is missing, Copilot asks for it one question at a time and suggests values that you can select. If the policy has two or more conditions, Copilot shows a summary and asks you to confirm it before it generates the policy.

What a policy needs

Item

Required

Example

Entity

Yes

ESX host, ESX VM, ESX datastore, switch port, ESX cluster, Hyper-V host

Metric or property

Yes

CPU utilization, memory active, read latency, power state

Condition

Yes

above 80%, below 20 ms, powered off

Duration (violation window)

No

for 10 minutes, or no window

Filter

No. Default: all entities of that type

production hosts only

Related entity

No

and one of its VMs has CPU ready above 5000

Severity

No. Default: WARNING

CRITICAL or WARNING

Name

No. Default: a name generated from the condition

VM health

Words that change the policy

Type

Result

help

Copilot shows a checklist of what a policy needs.

use defaults

Copilot skips the optional questions, such as duration, severity, and name, and uses the default values.

no window or on any breach

The alarm is raised on the first breach, with no duration.

any, either, or or

The alarm is raised when any condition is true. Without these words, all conditions must be true.

Limits

  • You can add up to five conditions for each entity.

  • If you add a related entity, give it at least one condition. To drop the related entity, answer no when Copilot asks for its condition.

Sample descriptions

Two conditions, both must be true:

Alert when ESX host CPU utilization is above 80% and memory active is above 90%

Two conditions, either one can be true:

Alert when any of these hold on an ESX host: CPU utilization above 80%, memory active above 90%

A related entity. The first entity that you name is the one that the alarm is about. The second is a related entity, such as a host's virtual machines or a virtual machine's host:

Alert on an ESX host when its CPU utilization is above 85% and one of its VMs has CPU ready above 5000

A metric and a property, with a duration and severity:

Alert on an ESX host when its CPU utilization is above 85% while it is powered on, for 15 minutes, severity critical

If you name a property without a value, such as "depending on its power state", Copilot asks for the value and lists the allowed values when it can.

Refine a generated policy

After Copilot generates a policy, send a follow-up message to change it, for example:

make the threshold 95%

add memory active above 90%

change severity to critical

Note

The questions that Copilot asks, and their order, can vary.

Copilot pane reference

Control

Description

Upload File

Uploads a policy file. Unavailable while Copilot generates a response.

Save

Saves the policy and adds it to the Alert Trigger page. Available after Copilot generates a policy.

Cancel

Closes the pane without saving.

Close icon (X)

Closes the pane.

Sources

Selects the IO appliances that the policy applies to.

Rule type buttons

Select Metric, Property, or both. Rule types that aren't available are dimmed.

Message Copilot box and send icon

Sends your description or follow-up changes to Copilot.

Thumbs-up and thumbs-down icons

Rate a Copilot response.

Policy editor

Shows the generated YAML with line numbers. You can edit the YAML before you save.

Upload an alert trigger policy file

Upload an existing YAML policy file instead of describing the policy to Virtana Copilot.

Before you begin: You have a policy file in YAML format that follows schema version 1.0.0.

  1. On the Alert Trigger page, click New Policy.

  2. Optional: In the Sources list, select the sources that the policy applies to.

  3. Click Upload File, and then select your YAML file.

  4. Review the policy in the editor, and then click Save.

Verification: The policy appears on the Alert Trigger page. In the policy details, the Uploaded File section shows the file name with a download icon.

View alert trigger policy details

On the Alert Trigger page, click the policy name. The Alert Trigger Policy details panel opens.

Section

Contents

Policy Execution State

The Enabled toggle.

General Information

Description, Source, Schema Version, Version, Created By with date and time, and Last Updated By with date and time.

Uploaded File

The YAML file for the policy, with a download icon.

Policy (YAML)

The full policy definition, read-only.

The panel also contains Edit and a delete icon. To close the panel, click the close icon.

Edit an alert trigger policy

Change the sources, condition, severity, or other settings of a policy with Virtana Copilot or the YAML editor.

Note

Edit alert trigger policies only in Virtana Platform. The rules on IO appliances are read-only. For more information, see Viewing Your Configured Alarms. When you save, the updated rule syncs to the policy's sources.

  1. On the Alert Trigger page, click the policy name.

  2. In the details panel, click Edit. The Update Alert Trigger Policy pane opens with the current YAML in the editor.

  3. Optional: In the Sources list, change the sources. If you remove a source, the rule is removed from that IO appliance.

  4. Describe the change in the Message Copilot box, such as make the threshold 95%, and click the send icon. Alternatively, edit the YAML directly.

  5. Click Update.

Verification: In the policy details, Version increases and Last Updated By shows your name and the current date and time. On the Alert Trigger page, each source shows Synced after the update reaches it.

Turn an alert trigger policy on or off

Turn a policy off temporarily, such as during maintenance, without deleting it.

On the Alert Trigger page, click the toggle in the State column. Alternatively, open the policy and click the Enabled toggle under Policy Execution State.

Verification: A policy that's off shows a gray toggle in the State column. IO stops raising alarms from the policy until you turn it on again.

Delete alert trigger policies

Delete a policy when you no longer need it. To stop a policy temporarily, turn it off instead.

Important

You can't undo a deletion. Deleting a policy also removes its rule from every IO appliance that the policy applies to.

  1. On the Alert Trigger page, select the check box next to each policy that you want to delete.

    The Delete button becomes available.

    Policy selected, with Delete available
  2. Click Delete.

    The Delete Policy dialog box opens with the message "Are you sure you want to delete this policy?"

    Delete Policy dialog box
  3. Click Yes to delete, or No to cancel.

To delete one policy from its details panel, click the delete icon next to Edit.

Verification: The deleted policies no longer appear on the Alert Trigger page, and their rules no longer appear on the IO appliances.

Alert trigger policy YAML reference

Fields in the policy definition that Virtana Copilot generates.

Field

Example

Description

name

Test Policy 01

The policy name shown in the Name column.

severity

WARNING

The alarm severity: CRITICAL or WARNING.

scope.identity.type

ENTITY

The kind of object evaluated.

scope.identity.filter

entityType EQUALS ESXHost

The entities the policy applies to: an attribute, an operator, and a value. Combine filters with operator: AND.

scope.identity.labelSet

uid, entityType, name

The labels attached to each alarm.

data.alias

host_cpu

A short name for the value, used in the expression.

data.selection.attributeType

Metric

Metric or Property.

data.selection.id

Server_cpu_usage

The metric or property that Copilot mapped from your description.

evaluation.expression

host_cpu > 90

The condition that raises the alarm.

violation.window.temporal.onDuration

10m

How long the condition must be true before the alarm is raised.

violation.window.temporal.offDuration

10m

How long the condition must be false before the alarm clears.

violation.window.temporal.threshold.percentage

100

The percentage of evaluations in the window that must violate the condition.

description

Test Policy 01: triggers a WARNING alert on ESXHost…

The text shown in the Description column.

Related topics