OBLYTECH Logo
OBLYTECH Logo

Server performance monitoring through ITOM metric collection

Server performance monitoring in ServiceNow is a chain of three parts. Agent Client Collector agents on each server run checks on their host. A MID Server carries that data to the instance. Metric Intelligence learns each metric’s normal range and raises an anomaly alert when a value moves outside it, scoring each anomaly from 0 to 10.

What the agent collects on a server

The agent runs on the Sensu framework, so checks can be added or extended beyond the built-in set. The agent executes commands on its host and sends the output to the instance through a MID Server or ITOM Cloud Services.

Metric Intelligence is a separate component that works alongside Agent Client Collector to explore metric values and identify anomalies.

How the data reaches the instance

The agent sends its results through a MID Server, which carries them between the monitored estate and the platform. On arrival, the instance stores the events and performance metrics in the relevant database and links each one to its configuration item in the CMDB. That link is what lets a CPU reading be judged against the server it came from.

Turning on monitoring is one action on the MID Server. Navigate to All > Agent Client Collector > Deployment > MID Servers, select the MID Server, then select Setup ACC Monitoring in Related Links. Selecting Setup ACC Monitoring connects the MID Server to its agents for Agent Client Collector Monitoring, and a confirmation window confirms the connection. The setup needs the agent_client_collector_admin role.

Sizing the MID Server for metric evaluation

A MID Server configured for Metric Intelligence processes incoming metric data and detects anomalies. It sends batches of processed data to the instance, and when it finds an anomaly it sends the details with the raw data immediately. The server must be validated, running, and configured with the Metrics capability and the Metric Intelligence Metrics extension. It does not support IPv6. Activating the plugin also creates a MID Server distributed cluster of the Distributed type, and the Metric Intelligence server must be added to it.

A MID Server with 12 GB of memory and 4 processor cores handles about 1.2 million metrics, or 12,000 CIs with 100 metrics each. Sized at 24 GB and 8 cores, it handles about 1.7 million.

Host resources Capacity
12 GB memory, 4 processor cores About 1.2 million metrics (12,000 CIs with 100 metrics each)
24 GB memory, 8 processor cores About 1.7 million metrics (17,000 CIs with 100 metrics each)

Memory is set in the wrapper-override.conf file in the MID Server’s agent conf folder. Set the initial and maximum Java memory to values that suit the host, and confirm the parameter names and limits for your release. Garbage collector and IPv4 overrides go in wrapper-override.conf, where numbers 101 to 200 are reserved for ServiceNow’s own parameters.

MID Server throttling protects the instance from data bursts without dropping data, and it is on by default. For troubleshooting, the metric and anomaly parts can be switched off separately through the mid.oi.metric_token_bucket_enabled and mid.oi.anomaly_token_bucket_enabled parameters.

How server performance monitoring learns a normal range

Metric Intelligence builds statistical models from past metric data. The learner runs daily, uses data up to 32 days old, and projects expected values with upper and lower bounds. Those bounds hold until the next learning run. A time series model does not adjust to new incoming data by itself, so a real change in a server’s pattern shows as anomalous until a learning run absorbs it.

Fitting a model needs history. Weekly patterns need at least 15 days of data and daily patterns need at least 3 days. Trendy, noisy, positive clipped noisy and local level series need 30 data points, and stationary non-parametric series need 5,000. A series with fewer than 30 points is classed as corrupt.

Each series also receives a classifier, which decides whether anomaly detection can run on it. Accumulator and near-constant series get no anomaly detection. Multinomial series, where values fall into a small set such as 100 or 99.9, get none either, and they need 400 data points before classification. Skewed noisy and centered noisy series receive alerts through metric rules with static bounds.

Local level handling covers lasting change. When cores or memory are added to a server, the baseline moves. The learner recognises the new cluster of values as a new level, so the readings stop registering as anomalies.

By default, metrics from CIs in maintenance mode are excluded from learning. To suspend anomaly detection during maintenance, set the mid.mi.anomaly_detection.disable property to true.

How anomaly scores become alerts

Each metric receives an anomaly score from 0 to 10, indicating how unlikely the value is against the model. Metric Intelligence generates an anomaly alert whenever the score is above zero. A score above four that has changed since the previous reading is sent to the instance, and the sequence can then be viewed in Insights Explorer. High scores can indicate that a configuration item is at risk of causing a service outage.

Scores map to five event severities through the Anomaly Score to Severity Mapping. By default, scores of 8 and 9 map to severity 2, Major. Changing the ranges requires the evt_mgmt_admin role.

Anomaly alerts are kept apart from regular IT alerts. Anomaly alerts appear in the Service Operations Workspace. Each shows the metric value, the promotion parameter and the upper and lower bounds, and its work notes list the related events. Promotion to an IT alert runs through Advanced Promotion Engine definitions. The Windows Server and Linux Server definitions ship with the base system and should be checked for the Active setting. Their conditions cannot be edited, so different conditions need a custom definition.

Metric labels filter some apparent anomalies. For example, available CPU rising from an upper bound of 50 percent to 60 percent is not treated as an anomaly, because more available CPU is a favourable change.

Tuning what gets measured and when it alerts

Metric rules offer a fixed-threshold alternative to anomaly detection. You choose a CI class, optionally filter it, choose the alert severity for the rule, and set a comparison and value. You also choose when the rule fires: when the sampled values breach the criteria over a chosen period, when their average over that period breaches, or any time a sampled value breaches.

Metrics bind to a CI as CI/Metric, or to a component such as a particular disk as CI/Resource/Metric. Resource binding suits hosts with several similar components.

To stop one metric on one CI, open Event Management, then Anomaly Detection, then Metric to CI, and set the record’s Active column to false. The Active setting in the Monitoring System Metric Types table takes precedence over it.

Anomaly test rules check how the models behave before you rely on them. A test rule can cover up to 20 metric series, and its results open in Insights Explorer.

Pausing collection on a busy server

Agents enter CPU protection mode when their CPU use stays above the cpu_percentage_limit (default 5 percent) for three consecutive checks (default repeated_high_cpu_num 3). With the default cpu_protection_behavior of all, the agent disables all checks and pauses data collection.

To pause deliberately, go to All > Agent Client Collector > Agents, select the agents, and choose Pause data collection. The status becomes Off (manual), and the agent stops its checks except keep-alive messages. Resume from the same list. The pause action requires the agent_client_collector_admin role.

Frequently asked questions

Which component collects CPU and memory from a server?

The Agent Client Collector runs checks on the server. The results travel to the instance through a MID Server or ITOM Cloud Services and are linked to the server’s configuration item.

Does collected data have to pass through a MID Server?

Not always. Server agents can connect through a MID Server or directly through ITOM Cloud Services. On the MID Server route, the agent sends its data to the instance through that server.

What does an anomaly score mean?

It runs from 0 to 10 and indicates how unlikely a value is against the learned model. By default, scores of 8 and 9 map to Major severity, and a high score can indicate that a configuration item is at risk of causing a service outage.

Why does a new server not show meaningful anomalies straight away?

Models need history. Weekly patterns need at least 15 days of data, and the learner works from data up to 32 days old, so the baseline is still forming during the first weeks.

Why did my server stop sending data?

CPU protection mode may have switched collection off. Check the agent’s Data Collection status on the Agents list, and resume data collection from the same list.