Skip to content

How to add a metric to anomaly detection

Use this procedure to add a metric to the list of metrics for which the anomaly detection service trains models. To perform it, your account must have the Manager role.

Prerequisites

  • Identify the metric's source type.

    The source may be a Collection Zone, a Kubernetes agent, or any other custom data source in your environment. You don't need the name of the source; just the source type.

  • Identify the metric's name.

    You may know a metric by its display name, which Zenoss Cloud uses in dashboard and Smart View pages when a metric is included in the metric dictionary. For example, the display name for the openstackQueues_perfQueueCount metric is Perf Queue Count.

Procedures

First, determine whether a custom anomaly policy exists for your metric's datasource. Then, either edit the existing custom policy or override the default policy.

Determine whether a custom anomaly policy exists

  1. Navigate to the ADMIN > Policy page, and then click the POLICIES tab.

  2. In the Policy type column, select the Anomaly filter.

  3. In the Source type column, enter the source type for your metric.

    For example, for Collection Zones the source type is cz.

Edit an existing custom policy

  1. In the table of policies on the POLICIES tab, identify the custom policy.

  2. In the Actions column of the row of the policy to edit, click the Policy details icon.

  3. Review the list of metrics in the Metric Names list.

    • If the metric to add is in the list, stop.
    • If the metric to add is not in the list, perform the remaining steps of this procedure.
  4. In the Actions column of the row of the policy to edit, click the Edit policy icon.

  5. In the left column of the EDIT POLICY dialog, click Main details.

  6. Verify that the policy is enabled.

  7. In the Metric field, begin entering the name of the metric to add.

    For example, cpu.time.

  8. From the list of potential matches, select the metric to add, and then click SAVE.

Override a default policy

  1. In the table of policies on the POLICIES tab, identify the policy to override.

  2. In the Actions column of the row of the policy to override, click the Override policy icon.

  3. In the left column of the EDIT POLICY dialog, click Main details.

  4. Verify that the policy is enabled.

  5. In the Metric field, begin entering the name of the metric to add.

    For example, cpu.time.

  6. From the list of potential matches, select the metric to add, and then click SAVE.