Anomalies detection in performance metrics
Summarize
Summary of Anomalies Detection in Performance Metrics
Instance Observer in ServiceNow proactively detects anomalies in performance metrics for the Impact Total package on production instances. These anomalies indicate metric outliers compared to historical data patterns and help identify potential performance issues. While anomalies highlight unusual data points, not all require immediate action; customers should analyze each anomaly's criticality and configure alerts accordingly.
Show less
The system differentiates between cyclical metrics, which repeat regularly, and non-cyclical metrics, which occur irregularly. Detection uses historical data patterns and a Z-score statistical model to identify outliers.
Key Features
- Cyclical Metrics Monitored:
- Transaction Count: Total UI transactions of type UITYPE across the instance.
- Server Response Time: Average execution time for UITYPE transactions.
- SQL Response Time: Mean database response time measured at the application layer.
- Semaphore Mean: Average concurrent user transactions processed per minute.
- Node Memory Max: Maximum memory usage in MB per node, typically ranging from 1000 MB to 2048 MB.
- Visualization: Performance metrics are displayed on time-based charts with anomalies marked in red. The charts include mean lines (four-week averages) and upper/lower boundaries based on normal distribution of historical data.
- Job Anomaly Detection: Tracks scheduled jobs running concurrently each hour, highlighting anomalous jobs in red on bar charts. Users can drill down to detailed job execution patterns over the last seven days to identify root causes of abnormal execution times.
- Job Scheduling Criteria: Jobs must run daily or weekly consistently over the past four weeks to be considered scheduled.
- Average Transaction Count Calculation: Averages transaction counts for the same hour and day over the past four weeks to establish baseline behavior.
- Job Anomaly Identification: Uses the mean plus five times the standard deviation of job duration over four weeks to determine an upper execution time threshold; jobs exceeding this threshold are flagged as anomalies.
Practical Guidance for Customers
- Use anomaly detection to proactively monitor performance metrics and scheduled jobs, enabling early identification of potential issues.
- Analyze detected anomalies carefully before responding, as not all anomalies indicate critical problems.
- Configure anomaly alerts based on your specific operational needs and the criticality of anomalies detected to optimize monitoring effectiveness.
- Leverage detailed job execution drill-downs to perform root cause analysis on jobs with unusual execution patterns.
Instance Observer proactively detects the anomalies for cyclical or non-cyclical metrics under the performance chart for the Impact Total package on production instances. Anomalies represent metrics outliers based on historical patterns. Every anomaly may not represent an issue, but, notifies you and you decide the criticality and configure alerts, accordingly.
Cyclical metrics occur as a complete set of events that repeat themselves regularly in the same order or in a regularly repeated period. Non-cyclical metrics are metrics that repeat themselves irregularly or in random, less predictable repeated periods. An anomaly, also known as an outlier, is a data point that is unusual, rare, or doesn't conform to the expected patterns or distribution of the data.
- Transaction count: The instance-wide sum of all UI transactions of an internal type known as UI_TYPE.
- Server Response Time: The average or mean execution time for UI_TYPE transactions.
- SQL Response Time: The reported mean of database response time measured at the application layer that starts when a query is sent to the database and finishes when the response has been received.
- Semaphore Mean: The average number of end-user transactions being processed concurrently over a one-minute period.
- Node Memory Max: The in use memory max in MB per node at a given data point in history. This value generally ranges between 1000 MB to 2048 MB.
- The x-axis represents time, and the y-axis represents the actual metrics as per date range selected. For example, the line chart displays the transaction count values over time. Anomalies are denoted by red color coding on the chart and represent the occurrence of an anomaly in the data. The placement of the red mark depends on the criteria or algorithm used to detect anomalies.
- The range represents the upper and lower boundary limits with a normal distribution of the metrics based on their historical dataset pattern.
- The mean line represents the four week average value of the metrics to compare the deviation at a given point in time.
Job anomaly detection
Job anomaly charts track the number of scheduled jobs running concurrently for each hour of the day with the overlaying metric of the average of transaction counts for each hour. Any bar in the chart that has one or multiple anomalous jobs is highlighted as red. Select the detail link of the bar chart to view the job level details.
Job Details will represent the hourly scheduled jobs along with respective average transactions of that instance.
Drill down from the hourly scheduled job count into an individual recurrence job for any hour of day and further into the execution pattern of the same job from the last seven days. This can help to perform end to end root cause for jobs that usually take a consistent amount of time to complete that suddenly experience a significant increase or decrease in execution time, indicating a possible performance issue.
- Schedule job criteria
- For the job to be considered a scheduled job, it should satisfy at least one of the following criteria:
- The job runs at least once for each day of the week.
- The job has run at least once for every week in the past four weeks.
- Average transaction count calculation
- For every hour in a given day, the sum of the transaction count of the past four weeks for the same day and same hour is averaged. For example, by fetching the sum of transaction counts from the past four Mondays for the fourth hour and averages the values for the final calculation.
- Job anomaly identification
- For the past four weeks, for every hour in which the job ran, the average duration time is calculated with the standard deviation value, which is the mean value, plus 5 multiplied by the standard deviation value.
Anomaly response
All anomalies don’t represent an issue, but, the outliers detected based on historical patterns. Configure alerts accordingly after analyzing the criticality of the anomaly detected. See Configure anomaly alerts for more information on alerts.