# Anomaly detection

## Overview

StackState can detect anomalies in your IT infrastructure by monitoring the metric streams attached to elements.

## Autonomous anomaly detection

The StackState Autonomous Anomaly Detector (AAD) StackPack works fully autonomously to identify anomalies in your IT environment. When installed and enabled, it will determine for itself the best configuration of its machine learning models and the metric streams that should be prioritized for anomaly detection. The AAD doesn't require configuration, although you can influence the selection of telemetry streams by giving them a higher priority.

Once the anomalies are identified, they're displayed in the MetricStream charts as in the example below:

![Anomaly example](/files/Bbk0sxYg0mRlyOlFZTDx)

Additionally, identified anomalies are available as StackState Events and can be viewed in the [Events Perspective](/5.1/use/stackstate-ui/perspectives/events_perspective.md) when event category `Anomalies` is selected in the filter.

![Anomaly events](/files/KWOfc7ZgOc5O2Zcwc0bo)

Finally, [anomaly health checks](/5.1/use/checks-and-monitors/anomaly-health-checks.md) can be configured for the most important metric streams to alert on problems before they occur.

➡️ [Learn more about the Autonomous Anomaly Detector](/5.1/stackpacks/add-ons/aad.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://archivedocs.stackstate.com/5.1/use/concepts/anomaly-detection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
