> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Up Anomaly Detection in OpenMetadata for Data Quality

> Steps to set up anomaly detection on a dataset: create tests from the UI, configure manual thresholds, monitor the incidents raised, and follow best practices.

# Steps to Set Up Anomaly Detection

### 1. Create a Test from the UI

* First, select the dataset and navigate to the **Tests** section in the OpenMetadata UI.
* Define your test parameters. Create a **static test** with explicit rules, such as "no null values" or "data should not exceed a certain range".

![Manual Configuration of Tests](https://mintcdn.com/openmetadata/W-h7zy_HSORZDwGK/public/images/how-to-guides/anomaly-detection/set-up-anomaly-detection-1.png?fit=max\&auto=format\&n=W-h7zy_HSORZDwGK\&q=85\&s=0a491aa1ea24c8adf13182c2a0363c56)

![Manual Configuration of Tests](https://mintcdn.com/openmetadata/W-h7zy_HSORZDwGK/public/images/how-to-guides/anomaly-detection/set-up-anomaly-detection-2.png?fit=max\&auto=format\&n=W-h7zy_HSORZDwGK\&q=85\&s=eae834462356e5605e959611ae4fe825)

### 2. Set Explicit Thresholds

* Set thresholds that match your data requirements (for example, sales should not exceed a maximum value of 100). OpenMetadata doesn't learn thresholds automatically, so review them when your data changes.

### 3. Monitor Incidents

* After configuring tests, monitor for any **incidents** triggered by anomalies detected in the system.
* Investigate significant spikes, drops, or unusual behaviors in the data, which may indicate system errors, backend failures, or unexpected external factors.

![Manual Configuration of Tests](https://mintcdn.com/openmetadata/W-h7zy_HSORZDwGK/public/images/how-to-guides/anomaly-detection/set-up-anomaly-detection-4.png?fit=max\&auto=format\&n=W-h7zy_HSORZDwGK\&q=85\&s=c77bcdc5597ce1a6550c6cfd6347f0e8)

## Best Practices

* **Use Static Assertions for Clear Rules**: For basic data validation, such as preventing null values or enforcing a minimum threshold, static assertions are effective and straightforward to configure.
* **Review Thresholds When Data Changes**: For datasets that naturally fluctuate (for example, sales or user activity), update your thresholds as the data evolves so incidents are only triggered by real problems.
* **Regularly Review Incidents**: Stay on top of incidents generated by anomaly detection to promptly identify and address data quality issues.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.