Configuring anomaly-based alerts and exceptions
Anomaly detection is specified at the monitoring profile level, with each profile monitoring a specific workload type.
About this task
When anomaly-based exceptions are enabled, the following occurs when a query workload matches the profile:
- Db2® Query Monitor calculates the mean and variance for the specified attributes (CPU, Elapsed, Get Pages).
- The mean will be maintained through intervals and per interval.
- More recent executions will be weighted more heavily.
- Users will specify a sensitivity value to control how far from normal before triggering the alert or exception.
Procedure
- Identifies the workload (by information such as the subsystem, plan, and program).
- Excludes any SQL codes from exception reporting for the workload.
- Defines an exception limit greater than 0.
- Disables exception thresholds:
In ISPF, set the Threshold Exceptions field to N.
In CAE, on the Exceptions and Alerts tab, deselect the Threshold Exceptions checkbox.
- Disables threshold alerts:
In ISPF, set the Threshold Alerts field to N.
In CAE, on the Exceptions and Alerts tab, deselect the Threshold Alerts checkbox.
- Specifies anomaly-based exceptions:
In ISPF, set the Anomaly-based Exceptions fields CPU Anomalies, Elapsed Anomalies, and Getpage Anomalies to Y as needed. For each selected field, set a value in the corresponding Toleration Level field.
In CAE, on the Exceptions and Alerts tab, select the Anomaly-based Exceptions checkboxes Cpu, Elapsed, and Getpages as needed. For each selected checkbox, set a value in the corresponding Sensitivity field.
- Specifies anomaly-based alerts:
In ISPF, set the Anomaly-based Alerts fields CPU Anomalies, Elapsed Anomalies, and Getpage Anomalies to Y as needed. For each selected field, set a value in the corresponding Toleration Level field.
In CAE, on the Exceptions and Alerts tab, select the Anomaly-based Alerts checkboxes Cpu, Elapsed, and Getpages as needed. For each selected checkbox, set a value in the corresponding Sensitivity field.
- Specifies discard levels:
In ISPF, specify these values in the CPU Discard Level, Elapsed Discard Level, and Getpage Discard Level fields.
In CAE, specify these values on the Exceptions and Alerts tab in the Discard CPU data above, Discard Elapsed Time data above, and Discard Getpages data above fields.
Tips for setting tolerance levels
When setting tolerance levels for anomaly-based alerts and exceptions, use the following guidance: