Skip to content

How HEAL evaluates multi-level thresholds

How readings become violations, events, and anomalies

6 min read Updated SS

HEAL evaluates each reading of a KPI against the enabled threshold levels. For more information about the settings and where you set them, see About multi-level thresholds.

From reading to anomaly#

HEAL handles each reading of a KPI in the following sequence:

  1. HEAL compares the reading with the condition of each enabled level. A reading that matches a condition is a violation of that level. A reading equal to a bound does not match: > 60 does not match 60.
  2. Each level counts its own consecutive violations. A reading that does not match a level resets the count of that level to zero. A missing reading freezes the violation counts of all levels.
  3. When the count of a level reaches its Persistence value, the level records an event. If no anomaly is open, the event opens one. The start time of the anomaly is the time of the first violation.
  4. After an event, the next violations of the level, up to its Suppression value, do not record events. The violation after them records an update event on the same anomaly, and the cycle repeats.
  5. If several levels are due to record an event on the same reading, HEAL records one event at the highest severity.
  6. When a level starts a new run of violations after its count was reset, it must meet Persistence again. It can then record another event on the same open anomaly.
  7. The anomaly closes when a closing condition is met, for example after the Closing Window count of consecutive normal readings. A later breach of the KPI opens a new anomaly.

How levels combine#

Each level counts its own consecutive violations independently. Even after a higher level records an event, the lower levels continue to evaluate their own Persistence and Suppression counts at the same time. Each level can use its own operation, and levels can overlap, but the levels must leave a normal range that matches no level. The following table uses Low < 40, Warning > 60, and Critical <> 20 and 80.

Reading (x) Levels that count a violation Highest level violated
x < 20 Low and Critical Critical
20 ≤ x < 40 Low Low
40 ≤ x ≤ 60 None None (normal)
60 < x ≤ 80 Warning Warning
x > 80 Warning and Critical Critical

A level records an event only when it meets its Persistence count, and then on the first violation after each Suppression count.

A 0 to 100 scale for one KPI with Low less than 40, Warning greater than 60, and Critical not between 20 and 80. Five bands are shown: below 20 Critical, 20 to 39 Low, 40 to 60 normal, 61 to 80 Warning, and above 80 Critical.
The result bands for Low < 40, Warning > 60, and Critical <> 20 and 80.

Example: one anomaly on a CPU KPI#

In this example, HEAL collects CPU_UTIL every minute, and Closing Window is 3. The following table shows the levels.

Level Threshold Persistence Suppression
Low > 70 10 5
Warning > 80 5 3
Critical > 90 1 2

The following table shows the readings where something changes. The readings between them continue the pattern of the preceding row.

Time Value What happens
10:00 71 The Low count starts.
10:06 81 The Warning count starts. The Low count is 7.
10:09 90 The Low count reaches its Persistence of 10. The anomaly opens with the start time 10:00.
10:10 91 Warning reaches its Persistence of 5, and Critical reaches its Persistence of 1. HEAL records one update event at Critical.
10:11 84 The Critical count resets to 0.
10:13 79 The Warning count resets to 0. The Low count continues.
10:15 76 Low has suppressed the 5 violations that followed its event at 10:09 (10:10 through 10:14), so this violation records an update event. The Critical event at 10:10 does not restart the Low count.
10:21 73 Another Low cycle completes (10:16 through 10:20), and HEAL records another update event.
10:25 69 The reading is normal. All counts reset, and the Closing Window count starts.
10:27 67 The third consecutive normal reading completes the Closing Window. The anomaly closes.

The breach produces one anomaly with five events: the opening event, the Critical update, two Low updates, and the close event.

Which Persistence and Suppression values apply#

HEAL uses the first source in the following list that applies to the KPI:

  1. The instance threshold of the KPI. For an attribute of a group KPI, the block of the attribute or, if it has no block, the ALL block.
  2. The anomaly settings that apply to the service. HEAL uses the Less than 1hr card for KPIs collected more often than every hour, and the Greater than or equal to 1hr card for all others. A KPI collected exactly every hour uses Greater than or equal to 1hr.

An availability KPI uses the values of its selected severity, from the card that matches its collection interval.

Cluster and instance evaluations#

A KPI on the Component Based tab can have a rule for the cluster-level value and a rule for the readings of each instance. HEAL evaluates them separately, so one problem can open a cluster anomaly and an instance anomaly. The two rules can have different conditions, and the cluster value can differ from the value of one instance, so the two anomalies might differ. Cluster data can also arrive later than instance data, so at a given moment the two anomalies might show different severities.

On the Timeline of a signal, an entry whose instance name ends in _cluster, such as HOST_15_cluster, belongs to the cluster evaluation. An entry with a plain name, such as HOST_16, belongs to one instance. To compare the readings of the two, see Read the KPI charts of an instance or a cluster.

What closes an anomaly#

An anomaly closes when one of the following occurs:

  • Readings stay normal for the Closing Window count.
  • Missing readings exceed Max Data Breaks.
  • A maintenance window starts.
  • Someone saves a change to the settings in scope.
  • The anomaly stays open longer than the maximum open duration, which is 6 hours by default.

A change of severity never closes an anomaly. For more information about closure reasons, see Compare the results with the settings.

What happens during a maintenance window#

While a service or instance is under maintenance, HEAL ignores the violations of its KPIs. It does not count them, so they record no events and open no anomaly. The window affects anomalies in the following ways:

  • If an anomaly is open when the window starts, the Closing Window count completes as if the breach had stopped. The anomaly closes with the reason Maintenance window, even if the KPI still breaches, and HEAL sends a close notification.
  • After a maintenance window, Persistence counts from the first new violation. If an anomaly then opens, its start time is the first violation after the window.
  • A KPI that is excluded from maintenance keeps its normal evaluation. The window does not close its open anomaly.

What happens when you save a change#

Saving a change to the enabled levels, thresholds, Persistence, Suppression, Closing Window, or Max Data Breaks closes the open anomalies in that scope, even if KPIs are still breaching. A signal whose anomalies all close also closes. HEAL sends close notifications to its recipients, and a ticketing integration that closes tickets from signals closes the related tickets.

HEAL then counts violations from zero under the new settings. A continuing breach opens a new anomaly only after it meets Persistence again, and the new anomaly starts at the first violation after the change.