You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
19
23
20
24
* Request rates, response times, and failure rates
21
25
* 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
26
30
27
31
## Prerequisites
28
32
29
-
* 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
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
30
34
31
35
* 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
+
32
37
* 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
33
38
34
39
## Web service metadata and response data
@@ -38,6 +43,8 @@ In this article, you learn how to collect data from and monitor models deployed
38
43
39
44
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.
40
45
46
+
<aname="python"></a>
47
+
41
48
## Use Python SDK to configure
42
49
43
50
### Update a deployed service
@@ -81,11 +88,27 @@ To disable Azure Application Insights, use the following code:
81
88
<service_name>.update(enable_app_insights=False)
82
89
```
83
90
91
+
<aname="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
0 commit comments