Metric Intelligence learns normal behavior for each metric on a configuration item and scores readings that move outside the projected bounds, and raises an anomaly alert when the score is above zero. Each alert carries a score from 0 to 10. This page covers the areas that shape those alerts, from how bounds are built to how alerts are read.
How Metric Intelligence builds bounds from history
Metric data arrives from monitoring sources such as SCOM, SolarWinds and Nagios XI. For the monitoring side of those feeds, see server performance monitoring through ITOM metric collection. Event rules and the CMDB identification engine attach each series to a configuration item and, where it applies, to a resource such as one disk. The system then trains statistical models on up to 32 days of past data. A model stays in effect until the next daily learning run, and it produces the expected values and upper and lower bounds that new readings are measured against.
The shape of the data decides which model is built, and each shape needs a minimum amount of history.
| Pattern in the data | Minimum history |
|---|---|
| Daily seasonal | 3 days |
| Weekly seasonal | 15 days |
| Trendy, noisy or positive clipped noisy | 30 data points |
| Multinomial | 400 data points |
Accumulator, Near Constant, Multinomial and Corrupt series get no data model and no anomaly detection. Near-constant metrics can be checked for anomalies once they are moved to the detected-constant model. A plain time series model does not adjust to new data, so a change in pattern tends to show as anomalous until the next learning run refreshes the bounds. A local level model behaves differently. When a permanent change occurs, such as cores or memory added to a server, the baseline moves so that incoming data returns within the bounds.
What the 0 to 10 anomaly score tells you
An anomaly is a data point outside the control bounds that deviates from expected values with statistical significance. The system tracks how often outliers occur and how long they persist, then turns that into a score from 0 to 10 showing how unlikely the value looks. High scores on CI metrics can indicate a CI at risk of causing a service outage. The score sets the color of each severity band in the charts.
Insights Explorer shows the metric statistics and charts for each CI after processing. The Anomaly Map shows correlated scores for the CIs with the highest anomaly scores across a timeline. Start with the map to find the CIs worth opening, then use Insights Explorer to see the series behind a score. For the wider AIOps context, see the ITOM AIOps guides. For the basics of the platform itself, what ServiceNow AIOps is, in plain language, is the place to start.
Setting score thresholds for each severity level
The score range is split into five event severity levels, and each level has its own color in Insights Explorer and the Anomaly Map. The boundaries live in a mapping table. By default, scores from 8 through 9 map to severity 2, Major, shown in dark orange.
To change a boundary:
- Navigate to All > Event Management > Anomaly Detection > Anomaly Score to Severity Mapping.
- In the Metric Anomaly Score to Event Severity Maps list view, double-click the severity to change.
- Edit the range of anomaly scores that maps to that severity.
- Select Update.
You need the evt_mgmt_admin role. Change one boundary at a time, then check the Anomaly Map.
Choosing how far each metric is processed
Processing is layered, from gathering raw metric data at the bottom to creating anomaly and IT alerts at the top. The anomaly_detection_action_level setting, applied through a configuration settings rule, decides how far up that stack a set of CIs and metrics climbs.
| Action level | What it adds |
|---|---|
| Metrics Only | Gathers metric data and nothing further |
| Bounds | Builds the statistical model and shows bounds in Insights Explorer |
| Anomaly Scores | Calculates and displays anomaly scores |
| Anomaly Alerts | Creates anomaly alerts where they apply |
| IT Alerts | Creates IT alerts based on anomaly alerts |
Each level includes the one beneath it. A sensible start is to let a small share of CIs and metrics generate alerts, then raise the share as confidence grows. The setting also reduces data load, which matters across a large estate.
Testing a model before enabling detection in production
Anomaly model testing applies detection to a small set of CIs and metrics using actual metric data, so you can compare results with what you expect before turning detection on. A useful first test is a server class where existing alerts already show an anomaly. Before enabling detection for Linux Servers, for example, check whether that anomaly is detected and whether the bounds match your expectations.
A test rule covers up to 20 time series: 20 metric types on one CI, one metric type across 20 CIs, or any mix that adds up to 20. Navigate to All > Event Management > Anomaly Detection > Anomaly Model Testing (role evt_mgmt_user), select or create a rule, then select Run Anomaly Test. When Status shows Complete, open the URL.
| Field | What to enter or what the system sets |
|---|---|
| Applies to | The Metric To CI Mapping table that supplies the pairs |
| Rule | Filter conditions that choose the CI and metric pairs |
| Start and End date | A window inside the past 7 days |
| Status, URL, Notes | Set by the system during the run |
Test results appear in faint colors in Insights Explorer, with bounds drawn in a different line pattern from live bounds. In Chart Settings, enable Show Bounds and Show Anomaly Scores to place test results beside live ones. The two can look very similar, and overlaid on one chart the differences are hard to see. Change the date range or series and run again. When the results match your expectations, enable detection in production for the tested metrics and CIs. Before you sign off the test, the AIOps testing and acceptance checklist lists the points worth confirming.
Reading and acting on anomaly alerts
Anomaly alerts are separate from regular IT alerts. An alert is generated whenever the score is above zero. When a score is above four and has changed from the previous score, it is sent to the instance, where the full sequence of scores appears in Insights Explorer. Alerts close when the anomalous behavior stops.
Some out-of-bounds values are not problems. Labels tell Metric Intelligence which direction of change is good news. Available CPU is a useful case. A higher reading is good news for it, so a climb past the upper bound is not treated as a problem and no anomaly is registered.
Each alert shows the metric value, the promotion parameter, and the upper and lower bounds, where lower bounds cannot drop below 0. Work notes hold the related events. To find alerts, go to All > Event Management > Metrics > Anomaly Alerts and double-click an alert in the Alerts Anomalies list view. The Description field gives the reason the alert was generated, the metric name and the anomaly score.
In the preview panel, select the alert and open the Info tab. The alert record opens on its Overview tab with the chart. If Metric Intelligence detected the anomaly, the chart shows machine learning bounds. If an administrator configured thresholds, it shows the static limits instead. Raw data behind the preview chart is kept for seven days, so an older alert may show no chart. Open in Metric Explorer covers one hour either side of the last event for an open alert, or of the first event for a closed one.
Anomaly alerts can be promoted to IT alerts through an Advanced Promotion Engine definition. Alerts that meet its conditions move into the IT table, which can help keep the queue focused on the more relevant ones.
Keeping load and noise under control
Three levers reduce noise and processing. Disable a metric for a CI when that series adds processing without adding insight. Fix unmapped metrics, since they stay out of detection until mapped, and the binding results list each failure. During planned work, set mid.mi.anomaly_detection.disable to true, because anomalies found mid-maintenance may be irrelevant. Reverse the change once the window closes.
When the question is how a stream of alerts becomes a manageable queue, the guide to reducing alert noise by design in Event Management covers the wider picture. For common setup mistakes, see common ServiceNow AIOps mistakes and how to avoid them.
Frequently asked questions
Why does a score of zero not raise an alert?
An alert is generated when the score is above zero, so a zero score produces none. A score above four that has changed from the previous score is the one sent on to the instance for review.
How many metrics can one anomaly test cover?
Up to 20 time series, split as you choose across metric types and CIs.
Why does an older anomaly alert show no chart?
The raw data behind the preview chart is kept for seven days. After that, there is nothing to plot.
What do the severity colors on the Anomaly Map mean?
Scores are split into five severity levels, each with its own color. By default, scores of 8 through 9 are Major, shown in dark orange. The boundaries can be edited in the mapping table.