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
-
Navigate to the ADMIN > Policy page, and then click the POLICIES tab.
-
In the Policy type column, select the Anomaly filter.
-
In the Source type column, enter the source type for your metric.
For example, for Collection Zones the source type is
cz
.- If a custom policy exists, proceed to the next section.
- If no custom policy exists, override the default policy.
Edit an existing custom policy
-
In the table of policies on the POLICIES tab, identify the custom policy.
-
In the Actions column of the row of the policy to edit, click the Policy details icon.
-
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.
-
In the Actions column of the row of the policy to edit, click the Edit policy icon.
-
In the left column of the EDIT POLICY dialog, click Main details.
-
Verify that the policy is enabled.
-
In the Metric field, begin entering the name of the metric to add.
For example,
cpu.time
. -
From the list of potential matches, select the metric to add, and then click SAVE.
Override a default policy
-
In the table of policies on the POLICIES tab, identify the policy to override.
-
In the Actions column of the row of the policy to override, click the Override policy icon.
-
In the left column of the EDIT POLICY dialog, click Main details.
-
Verify that the policy is enabled.
-
In the Metric field, begin entering the name of the metric to add.
For example,
cpu.time
. -
From the list of potential matches, select the metric to add, and then click SAVE.