Editing alert rules

For default alert rules, you can change the rule's enabled/disabled state; the conditions for minor, major, and critical alerts; and the duration. For custom alert rules, you can also edit the rule's name, description, and recommended actions.

Before you begin

Steps

  1. Select Alarms. Then, in the Alerts (Preview) section of the menu, select Rules.
    The Alert Rules page appears.
  2. Select the radio button for the alert rule you want to edit.
  3. Select Edit rule.
    The Edit Rule dialog box appears. This example shows a default alert rule—the name, description, and recommended actions cannot be edited.
    Alerts > Edit Rule
  4. Select or unselect the Enabled check box to determine if this alert rule is currently enabled.

    If an alert rule is disabled, its expressions are not evaluated and no alerts are triggered.

    Note: If you disable the alert rule for an active alert, you must wait a few minutes for the alert to no longer display on the Alerts page.
  5. For custom alert rules, update the following information as required.
    Note: You cannot edit this information for default alert rules.
    Field Description
    Unique Name A unique name for this rule.

    The alert rule name is shown on the Alerts page and is also the subject for email notifications. Names for alert rules can be between 1 and 64 characters.

    Description A description of the problem that is occurring.

    The description is the alert message shown on the Alerts page and in email notifications. Descriptions for alert rules can be between 1 and 128 characters.

    Recommended Actions Optionally, the recommended actions to take when this alert is triggered.

    Enter recommended actions as plain text (no formatting codes). Recommended actions for alert rules can be between 0 and 1,024 characters.

  6. In the Conditions section, enter or update the Prometheus expression for one or more of the alert severity levels.
    Note: If you want to restore a condition for an edited default alert rule back to its original value, click the three dots to the right of the modified condition.
    Alert rules: reverting an edited condition to default value
    Note: If you update the conditions for an active alert, your changes might not be implemented until the previous condition is resolved. The next time one of the conditions for the rule is met, the alert will reflect the updated values.
    A basic expression is usually of the form:
    [metric] [operator] [value]

    Expressions can be any length, but appear on a single line in the user interface. At least one expression is required.

    To see available metrics and to test Prometheus expressions, click the help icon question mark icon and follow the link to the Metrics section of the Grid Management API.

    To learn about using the Grid Management API, see the instructions for administering StorageGRID. For details on the syntax of Prometheus queries, see the documentation for Prometheus 2.3.

    Example
    This expression causes an alert to be triggered if the amount of installed RAM for a node is less than 24,000,000,000 bytes (24 GB).
    node_memory_MemTotal < 24000000000
  7. In the Duration field, enter the amount of time a condition must continuously remain in effect before the alert is triggered, and select the unit of time.
    To trigger an alert immediately when a condition becomes true, enter 0. Increase this value to prevent temporary conditions from triggering alerts.
    The default is 5 minutes.
  8. Click Save.