---
title: "About the Dynamic Thresholds app"
description: "Discover how the ITRS Analytics Dynamic Thresholds app enhances system monitoring by automating anomaly detection, reducing alert fatigue, and focusing responses on significant deviations."
url: "https://docs.itrsgroup.com/docs/itrs-analytics/app/dynamic-thresholds/1.8.0/user-guide/dynamic-thresholds/index.html"
---

**Note**

 The Dynamic Thresholds app version 1.7.0 requires:
- Web Console version 3.9.0 or later
- ITRS Analytics Platform version 2.18.0 or later 


The Dynamic Thresholds app is designed to help you monitor your systems more intelligently and reduce alert fatigue. Traditional static thresholds often generate unnecessary alerts when normal fluctuations occur, overwhelming teams and diverting attention from real issues. In contrast, the Dynamic Thresholds app provides adaptive, data-driven anomaly detection by learning from historical data and automatically adjusting to expected behavior. This ensures that alerts focus on statistically significant deviations, allowing you to respond only to genuine anomalies.

Use the Dynamic Thresholds app to set up and manage dynamic thresholds for various metrics. The app leverages a deviation model that learns the historical behavior of your metrics, automatically establishing and adjusting flexible upper and lower boundaries.

The app also offers:

- Configurable warning and critical severity levels for alert escalation.
- An adjustable training window so thresholds can follow recent patterns.
- Noise reduction to cut false positives from short-lived spikes.

![Dynamic Thresholds main screen](https://docscdn.itrsgroup.com/itrs-analytics-app-dynamic-thresholds/images/dynamic-thresholds-main-screen-1-2.png)

From the app's main screen, you can:

- View a list of all existing dynamic threshold configurations.
- Edit an existing dynamic threshold configuration by clicking on a row.
- See the status of each configuration. With an admin account, you can toggle the **Enabled** checkbox of a configuration directly from the table to activate or deactivate a configuration.
- Identify the name, metric, group, number of entities, who created the configuration, and last modified date for each configuration.
- Search for any string field in the configurations.

## Use cases

Use Dynamic Thresholds when a metric has natural variability and a single fixed limit would either fire too often or miss real problems:

| Situation | Why static thresholds struggle | How dynamic thresholds helps |
|-----------|--------------------------------|------------------------------|
| Scheduled or campaign-driven load; for example, a front-end CPU that regularly rises during a weekly promo or overnight batch job | A fixed critical line (such as 85%) fires every time the expected spike occurs | The training window learns the higher baseline as normal and signals only when usage is unusual for that period |
| Daily or weekly traffic cycles, such as network throughput, session counts, or similar demand that rises and falls with business hours | One number is either too tight at peak or too loose off-peak | Adaptive upper and lower bands track the recent pattern so both overload and unexpected drops can raise severity |
| Latency and error rates that usually fluctuate, such as response time, failed queries, or similar service health metrics | Brief spikes self-resolve but still page on-call | Pair adaptive thresholds with **Rolling window** or **Alert delay** so only sustained breaches raise a signal |
| Multiple entities, one policy that defines the same metric across a large estate | Hand-tuning a static limit per host or service does not scale | One configuration plus an entity filter applies the same adaptive policy; dry run shows impact before you enable it |

## Define a new dynamic threshold configuration


**Tip**

 Watch this [product demo tour](https://app.storylane.io/demo/pe2pyigm0fri) in full screen to learn how to create a dynamic threshold configuration for your metrics. 


https://app.storylane.io/demo/pe2pyigm0fri

### Summary

The **Summary** section gives a plain-language overview of the configuration as you build it, including the source metric, whether upper and/or lower thresholds are set, the training window, and how thresholds are evaluated. It also shows how many entities match the current filter so you can see the scope of the configuration before you save it.

### Source metric

Use **Source Metric** to choose the metric the configuration monitors and from which thresholds are calculated.

- Select a gauge, counter, or histogram metric. A source metric is required before you can save.
- Optionally add an entity filter to limit which entities the configuration applies to.
- For histogram metrics, choose the percentile used for evaluation (`min`, `p5`, `p25`, `p50`, `p75`, `p95`, or `max`).

### Thresholds

A threshold is the boundary that determines whether a metric is within a normal range. Breaching a threshold can change the severity status.

In the **Thresholds** section, enable **Upper Thresholds**, **Lower Thresholds**, or both. At least one band must remain enabled.

For each enabled band, set warning and critical factors on the continuous slider (from **Strict**, **Moderate**, to **Lenient**). The number under each thumb is the standard deviation factor used by the deviation model.

Each thumb moves from `0.25` to `10` in steps of `0.25`. Left (strict) is a small factor, indicating a tight band and more alerts. Right (lenient) is a large factor, indicating a wide band and fewer alerts.

The model learns a mean and standard deviation over the training window, then places boundaries at `mean + (standard deviation × factor)` and `mean − (standard deviation × factor)`. A factor of `2` means the threshold line sits two standard deviations from the recent mean.

A new configuration starts with a warning factor of `2` and a critical factor of `3`. Warning and critical must stay at least `0.25` apart (warning below critical on the upper band, and above critical on the lower band).

#### Threshold limits

Use **Set Threshold Limits** to define minimum and maximum threshold values for a configuration. These limits constrain the dynamic thresholds so they cannot produce invalid or out-of-range values. Limit controls are available after a metric is selected and a preview has run.

When limits are enabled:

- The threshold limit input unit always matches the preview chart's display unit, so the values you enter are shown in the same unit as the chart. Values are stored in base units.
- You can hide **Threshold Maximum** and **Threshold Minimum** on the preview chart by toggling the corresponding chart legend items.
- Changing the source metric clears any existing threshold limits. Limits entered for the previous metric's unit are not carried over or reinterpreted in the new unit.
- **Save** stays disabled while threshold limits are invalid. Opening an existing configuration does not enable **Save** until you make an edit.

### Training window

The **Training Window** is the historical period used to train the dynamic threshold model.

Set the **Sliding Window Length** from 5 minutes to 60 days. Longer windows learn from more history, while shorter windows adapt more quickly to recent behavior. Changing the window length also updates how often thresholds are refreshed.

### Noise reduction

Use **Noise Reduction** to reduce false alerts caused by metric noise. Choose one of:

- **None** — Thresholds are evaluated against the most recent source metric value. Most responsive, but can produce more frequent alerts.
- **Rolling window** — Thresholds are evaluated against a rolling window over a time interval you set. Fewer signals, with some delay in alerting.
- **Alert delay** — Thresholds are still evaluated against the latest value, but a signal is raised only if the threshold is breached continuously for the interval you set. Helps avoid false positives from short-term spikes, with some delay in alerting.

## Analyze results

Once a metric is selected, a chart is automatically generated on the right-hand side of the screen. This chart shows the metrics and thresholds for any matching entity within the last 24 hours and provides a comprehensive view of your metric behavior.

This chart also displays:

- The primary metric value and its statistical spread, providing better insight into data variability and confidence.
- A shaded range for each data sample which represents the statistical distribution of values, including the minimum and maximum bounds and 25th to 75th percentile ranges.
- Aggregation of scalar metric values during threshold calculations for more precise results. Click on the ![gear icon](https://docscdn.itrsgroup.com/itrs-analytics-app-dynamic-thresholds/images/dynamic-thresholds-gear-icon.png "icon") icon to select your preferred aggregation method:
  - Mean - the average value over the time window.
  - Min - the minimum value in the time window.
  - Max - the maximum value in the time window.
  - Percentile - a configurable percentile (min, p5, p25, p50, p75, p95, max).

  
**Note**


Custom aggregations are only available when your configuration meets the following conditions:

- Scalar metrics are used, not histogram metrics nor rolling window.
- Noise reduction is set to **None** or **Alert Delay**.
- **Use raw values** option is disabled.

When these conditions are not met, the aggregation controls will be disabled with a helpful tooltip explaining what needs to be changed.


- Raw data when the **Use raw values** button is enabled. The chart will display the metric line using raw data instead of downsample data. Raw values can only be viewed while editing a configuration and will not persist upon saving.

Use this chart to preview the behavior of your dynamic threshold configuration. Changing the selected metric or adjusting the thresholds and training window sliders will automatically update the chart.

![Dynamic Thresholds preview chart](https://docscdn.itrsgroup.com/itrs-analytics-app-dynamic-thresholds/images/dynamic-thresholds-preview-chart-1-2.gif)

Click **Analyse Results** to simulate the configuration for matching entities. The **Dry Run Results** table then gives you an overview of how the configuration impacts most entities. You can click on a row to preview the dynamic threshold behavior for a specific entity and adjust your configuration based on these results.

![Dynamic Thresholds dry run results](https://docscdn.itrsgroup.com/itrs-analytics-app-dynamic-thresholds/images/dynamic-thresholds-dry-run-results-1-2.gif)

When you adjust your configuration, a banner will appear indicating that the results are no longer valid. Click **Refresh Results** to show the updated results based on the new configuration.

![Dynamic Thresholds refresh results](https://docscdn.itrsgroup.com/itrs-analytics-app-dynamic-thresholds/images/dynamic-thresholds-refresh-results.png)

## Save the configuration

Click **Save** to save your dynamic threshold configuration. The **Save** button stays disabled if threshold limits are invalid or you have not changed an opened configuration.

In the dialog, provide:

- **Name** — Required and unique for new configurations. If the name already exists, the dialog flags the duplicate and does not overwrite the existing configuration. The dialog also stays open if saving fails for another reason. For an existing configuration, the name cannot be changed, but you can still update the display name, group, and categories.
- **Group** — Required. Grouping organizes configurations on the landing page.
- **Signal Categories** — Required. Signals raised by this configuration appear in the Alerting app under **Counts by Signal Category** with the category labels you set here.


**Note**

 New configurations are disabled by default so you do not raise signals accidentally. After you save, return to the Dynamic Thresholds landing page and, with an admin account, toggle **Enabled** for that configuration.

While enabled, signals are raised when the metric breaches the adaptive thresholds and clear when the metric returns within range. 


## Import and export configurations

The Dynamic Thresholds app supports importing and exporting configurations in JSON format. This is useful for moving configurations across different environments.

### Import

With the **Import** feature, you can:

- Upload up to 100 JSON files at a time, with a maximum size of 2 MB per file.
- Validate each file to ensure it is valid JSON and a proper threshold configuration.
- Override existing configurations to prevent conflicts.

When importing files, you may encounter the following status messages:


**Valid**

 The configuration has been successfully validated and is ready for import. 



**Uploaded**

 The configuration has been successfully uploaded to the server. 



**Conflict**

 The configuration file is valid, but the filename conflicts with an existing configuration. You can choose to override the existing file. 



**Error**

 The file could not be imported due to invalid JSON or failed ThresholdConfig validation. 



**Failed**

 The file upload to the server failed. 



**Oversized**

 The file exceeds the 2MB size limit. 



**Skipped**

 The file was skipped because the maximum of 100 configurations was reached. 


### Export

With the **Export** feature, you can:

- Download individual configuration files or bulk export them into a single JSON file.
- Select multiple JSON files to export by ticking on the corresponding checkboxes or clicking **Select All**.
- Maintain consistent naming, as exported files retain the configuration names used in the app.

## Threshold metric staleness

When a dynamic threshold configuration is enabled, the app publishes threshold metrics for every matching entity. The threshold metrics are ingested into the platform like ordinary source metrics and contribute to entity activity tracking. As a result, threshold metrics can keep entities appearing active in Entity Viewer even when the original source metric has stopped producing data.

Each dynamic threshold configuration defines a `refreshInterval` that controls how often 
the app queries the platform for fresh metric data. When that refresh runs, the app 
recalculates threshold values from the latest data and checks when the source metric was 
last seen. Between refreshes, the app continues to re-publish the existing threshold values at a shorter interval to keep entity activity current.

By default, the app stops publishing threshold data for an entity approximately one hour after its source metric was last seen. This is controlled by the `thresholdMetricStaleAfter` setting, which defaults to PT1H (one hour). The exact time until the entity becomes inactive in Entity Viewer also depends on your platform's entity inactivity configuration, which is managed separately from the Dynamic Thresholds app. If the default behavior does not suit your deployment, contact ITRS support.

### Signals when a source metric becomes stale

When the app determines that a source metric has stopped sending data, it publishes a clear so the dynamic threshold signal moves to severity `NONE`, with a message indicating that the signal was cleared due to source metric staleness. You do not need to wait for entity age-out alone to drop a stale severity.


**Note**


After the app clears a signal to `NONE`, the visible signal updates immediately.



### Troubleshooting

- Entity stays active longer than expected — Verify that no other data source is still publishing for that entity. Check entity attributes, such as inactivity timestamps in the Entity Viewer. If the issue persists, contact ITRS support.
- Signals clearing unexpectedly while the source is healthy — This can indicate a configuration timing issue. Contact ITRS support with details of your threshold configuration's `refreshInterval` and your deployment's Helm values.

