The Anomaly Detector API enables you to monitor and detect abnormalities in your time series data without having to know machine learning. The Anomaly Detector API's algorithms adapt by automatically identifying and applying the best-fitting models to your data, regardless of industry, scenario, or data volume. Using your time series data, the API determines boundaries for anomaly detection, expected values, and which data points are anomalies.
Download an SVG of this architecture.
- Ingests data from the various stores that contain raw data to be monitored by Anomaly Detector.
- Aggregates, samples, and computes the raw data to generate the time series or calls the Anomaly Detector API directly if the time series is already prepared and responds with the detection results.
- Queue the anomaly related metadata.
- The serverless app picks the message from the message queue based on the anomaly-related metadata and sends the alert about the anomaly.
- Stores the anomaly detection metadata.
- Visualize the results of the time series anomaly detection.
Key technologies used to implement this architecture:
- Service Bus: Reliable cloud messaging as a service (MaaS) and simple hybrid integration
- Azure Databricks: Fast, easy, and collaborative Apache Spark–based analytics service
- Power BI: Interactive data visualization BI tools
- Storage Accounts: Durable, highly available, and massively scalable cloud storage
- Cognitive Services: cloud-based services with REST APIs and client library SDKs available to help you build cognitive intelligence into your applications
- Logic Apps: Serverless platform for building enterprise workflows that integrate applications, data, and services. In this architecture, the logic apps are triggered by HTTP requests.
- Event Hubs with Kafka: An alternative to running your own Kafka cluster. This Event Hubs feature provides an endpoint that is compatible with Kafka APIs.
- Azure Synapse Analytics: Analytics service that brings together enterprise data warehousing and Big Data analytics
- Azure Machine Learning: lets you build, train, deploy, and manage custom machine learning / anomaly detection models in a cloud-based environment.
The majority of the components used in this example scenario are managed services that will automatically scale.
For general guidance on designing scalable solutions, see the performance efficiency checklist in the Azure Architecture Center.
Managed identities for Azure resources are used to provide access to other resources internal to your account and then assigned to your Azure Functions. Only allow access to the requisite resources in those identities to ensure that nothing extra is exposed to your functions (and potentially to your customers).
For general guidance on designing secure solutions, see the Azure Security Documentation.
All of the components in this scenario are managed, so at a regional level they are all resilient automatically.
For general guidance on designing resilient solutions, see Designing resilient applications for Azure.
To explore the cost of running this scenario, see the pre-filled calculator with all of the services. To see how the pricing would change for your particular use case, change the appropriate variables to match your expected traffic / data volumes.
We have provided three sample cost profiles based on the amount of traffic (we assume all images are 100 kb in size):
- Example calculator: this pricing example is a calculator with all services in this architecture, except Power BI and custom alerting solution.
- Interactive demo
- Detect and visualize anomalies in your data with the Anomaly Detector API - Demo on Jupyter Notebook
- Identify anomalies by routing data via IoT Hub to a built-in ML model in Azure Stream Analytics
- Recipe: Predictive maintenance with the Cognitive Services for Big Data
- Service Bus Documentation
- Azure Databricks Documentation
- Power BI Documentation
- Storage Documentation