Skip to content

Commit 66a35da

Browse files
authored
Merge pull request #107384 from nibaccam/app-insights
Data drift | App insights image refresh
2 parents 3ec2910 + 11830bf commit 66a35da

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

articles/machine-learning/how-to-enable-app-insights.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ ms.topic: conceptual
99
ms.reviewer: jmartens
1010
ms.author: larryfr
1111
author: blackmist
12-
ms.date: 11/12/2019
12+
ms.date: 03/12/2020
1313
---
1414

1515
# Monitor and collect data from ML web service endpoints
1616
[!INCLUDE [applies-to-skus](../../includes/aml-applies-to-basic-enterprise-sku.md)]
1717

18-
In this article, you learn how to collect data from and monitor models deployed to web service endpoints in Azure Kubernetes Service (AKS) or Azure Container Instances (ACI) by enabling Azure Application Insights. In addition to collecting an endpoint's input data and response, you can monitor:
18+
In this article, you learn how to collect data from and monitor models deployed to web service endpoints in Azure Kubernetes Service (AKS) or Azure Container Instances (ACI) by enabling Azure Application Insights via
19+
* [Azure Machine Learning Python SDK](#python)
20+
* [Azure Machine Learning studio](#studio) at https://ml.azure.com
21+
22+
In addition to collecting an endpoint's output data and response, you can monitor:
1923

2024
* Request rates, response times, and failure rates
2125
* Dependency rates, response times, and failure rates
@@ -26,9 +30,10 @@ In this article, you learn how to collect data from and monitor models deployed
2630

2731
## Prerequisites
2832

29-
* If you dont have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://aka.ms/AMLFree) today
33+
* If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://aka.ms/AMLFree) today
3034

3135
* An Azure Machine Learning workspace, a local directory that contains your scripts, and the Azure Machine Learning SDK for Python installed. To learn how to get these prerequisites, see [How to configure a development environment](how-to-configure-environment.md)
36+
3237
* A trained machine learning model to be deployed to Azure Kubernetes Service (AKS) or Azure Container Instance (ACI). If you don't have one, see the [Train image classification model](tutorial-train-models-with-aml.md) tutorial
3338

3439
## Web service metadata and response data
@@ -38,6 +43,8 @@ In this article, you learn how to collect data from and monitor models deployed
3843
3944
The metadata and response to the service - corresponding to the web service metadata and the model's predictions - are logged to the Azure Application Insights traces under the message `"model_data_collection"`. You can query Azure Application Insights directly to access this data, or set up a [continuous export](https://docs.microsoft.com/azure/azure-monitor/app/export-telemetry) to a storage account for longer retention or further processing. Model data can then be used in the Azure Machine Learning to set up labeling, retraining, explainability, data analysis, or other use.
4045

46+
<a name="python"></a>
47+
4148
## Use Python SDK to configure
4249

4350
### Update a deployed service
@@ -81,11 +88,27 @@ To disable Azure Application Insights, use the following code:
8188
<service_name>.update(enable_app_insights=False)
8289
```
8390

91+
<a name="studio"></a>
92+
93+
## Use Azure Machine Learning studio to configure
94+
95+
You can also enable Azure Application Insights from Azure Machine Learning studio when you're ready to deploy your model with these steps.
96+
97+
1. Sign in to your workspace at https://ml.azure.com/
98+
1. Go to **Models** and select which model you want to deploy
99+
1. Select **+Deploy**
100+
1. Populate the **Deploy model** form
101+
1. Expand the **Advanced** menu
102+
103+
![Deploy form](./media/how-to-enable-app-insights/deploy-form.png)
104+
1. Select **Enable Application Insights diagnostics and data collection**
105+
106+
![Enable App Insights](./media/how-to-enable-app-insights/enable-app-insights.png)
84107
## Evaluate data
85108
Your service's data is stored in your Azure Application Insights account, within the same resource group as Azure Machine Learning.
86109
To view it:
87110

88-
1. Go to your Azure Machine Learning workspace in [Azure Machine Learning studio](https://ml.azure.com) and click on Application Insights link
111+
1. Go to your Azure Machine Learning workspace in the [Azure portal](https://ms.portal.azure.com/) and click on the Application Insights link
89112

90113
[![AppInsightsLoc](./media/how-to-enable-app-insights/AppInsightsLoc.png)](././media/how-to-enable-app-insights/AppInsightsLoc.png#lightbox)
91114

41.9 KB
Loading
24.4 KB
Loading

0 commit comments

Comments
 (0)