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
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/tutorial-asp-net-custom-metrics.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,29 +111,29 @@ To send metrics to Application Insights, you can use the `TrackMetric(..)` API.
111
111
112
112
4. Right-click the **AzureCafe** project in Solution Explorer and select **Publish** from the context menu.
113
113
114
-

114
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/web-project-publish-context-menu.png" alt-text="Screenshot of the Visual Studio Solution Explorer with the Azure Cafe project selected and the Publish context menu item highlighted." lightbox="media/tutorial-asp-net-custom-metrics/web-project-publish-context-menu.png":::
115
115
116
116
5. Select **Publish** to promote the new code to the Azure App Service.
117
117
118
-

118
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/publish-profile.png" alt-text="Screenshot of the Azure Cafe publish profile screen with the Publish button highlighted." lightbox="media/tutorial-asp-net-custom-metrics/publish-profile.png":::
119
119
120
120
6. Once the publish has succeeded, a new browser window opens to the Azure Cafe web application.
121
121
122
-

122
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/azure-cafe-index.png" alt-text="Screenshot of the Azure Cafe web application." lightbox="media/tutorial-asp-net-custom-metrics/azure-cafe-index.png":::
123
123
124
124
7. Perform various activities in the web application to generate some telemetry.
125
125
126
126
1. Select **Details** next to a Cafe to view its menu and reviews.
127
127
128
-

128
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/cafe-details-button.png" alt-text="Screenshot of a portion of the Azure Cafe list with the Details button highlighted." lightbox="media/tutorial-asp-net-custom-metrics/cafe-details-button.png":::
129
129
130
130
2. On the Cafe screen, select the **Reviews** tab to view and add reviews. Select the **Add review** button to add a review.
131
131
132
-

132
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/cafe-add-review-button.png" alt-text="Screenshot of the Cafe details screen with the Add review button highlighted." lightbox="media/tutorial-asp-net-custom-metrics/cafe-add-review-button.png":::
133
133
134
134
3. On the Create a review dialog, enter a name, rating, comments, and upload a photo for the review. Once completed, select **Add review**.
135
135
136
-

136
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/create-a-review-dialog.png" alt-text="Screenshot of the Create a review dialog." lightbox="media/tutorial-asp-net-custom-metrics/create-a-review-dialog.png":::
137
137
138
138
4. Repeat adding reviews as desired to generate more telemetry.
139
139
@@ -176,37 +176,37 @@ When running the sample code, you'll see that no telemetry is being sent from th
176
176
177
177
4. Right-click the **AzureCafe** project in Solution Explorer and select **Publish** from the context menu.
178
178
179
-

179
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/web-project-publish-context-menu.png" alt-text="Screenshot of the Visual Studio Solution Explorer with the Azure Cafe project selected and the Publish context menu item highlighted." lightbox="media/tutorial-asp-net-custom-metrics/web-project-publish-context-menu.png":::
180
180
181
181
5. Select **Publish** to promote the new code to the Azure App Service.
182
182
183
-

183
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/publish-profile.png" alt-text="Screenshot of the Azure Cafe publish profile with the Publish button highlighted." lightbox="media/tutorial-asp-net-custom-metrics/publish-profile.png":::
184
184
185
185
6. Once the publish has succeeded, a new browser window opens to the Azure Cafe web application.
186
186
187
-

187
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/azure-cafe-index.png" alt-text="Screenshot of the Azure Cafe web application." lightbox="media/tutorial-asp-net-custom-metrics/azure-cafe-index.png":::
188
188
189
189
7. Perform various activities in the web application to generate some telemetry.
190
190
191
191
1. Select **Details** next to a Cafe to view its menu and reviews.
192
192
193
-

193
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/cafe-details-button.png" alt-text="Screenshot of a portion of the Azure Cafe list with the Details button highlighted." lightbox="media/tutorial-asp-net-custom-metrics/cafe-details-button.png":::
194
194
195
195
2. On the Cafe screen, select the **Reviews** tab to view and add reviews. Select the **Add review** button to add a review.
196
196
197
-

197
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/cafe-add-review-button.png" alt-text="Screenshot of the Cafe details with the Add review button highlighted." lightbox="media/tutorial-asp-net-custom-metrics/cafe-add-review-button.png":::
198
198
199
199
3. On the Create a review dialog, enter a name, rating, comments, and upload a photo for the review. Once completed, select **Add review**.
200
200
201
-

201
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/create-a-review-dialog.png" alt-text="Screenshot of the Create a review dialog displays." lightbox="media/tutorial-asp-net-custom-metrics/create-a-review-dialog.png":::
202
202
203
203
4. Repeat adding reviews as desired to generate more telemetry.
204
204
205
205
### View metrics in Application Insights
206
206
207
207
1. Go to the **Application Insights** resource in the [Azure portal](https://portal.azure.com).
208
208
209
-

209
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/application-insights-resource-group.png" alt-text="Second screenshot of a resource group with the Application Insights resource highlighted." lightbox="media/tutorial-asp-net-custom-metrics/application-insights-resource-group.png":::
210
210
211
211
2. From the left menu of the Application Insights resource, select **Logs** from beneath the **Monitoring** section. In the **Tables** pane, double-click on the **customMetrics** table, located under the **Application Insights** tree. Modify the query to retrieve metrics for the **ReviewPerformed** custom named metric as follows, then select **Run** to filter the results.
212
212
@@ -276,37 +276,37 @@ Once you have made that change and send new multi-dimensional telemetry, you'll

279
+
:::imagetype="content"source="media/tutorial-asp-net-custom-metrics/web-project-publish-context-menu.png"alt-text="Screenshot of the Visual Studio Solution Explorer with the Azure Cafe project selected and the Publish context menu item highlighted."lightbox="media/tutorial-asp-net-custom-metrics/web-project-publish-context-menu.png":::
:::imagetype="content"source="media/tutorial-asp-net-custom-metrics/publish-profile.png"alt-text="Screenshot of the Azure Cafe publish profile with the Publish button highlighted."lightbox="media/tutorial-asp-net-custom-metrics/publish-profile.png":::

287
+
:::imagetype="content"source="media/tutorial-asp-net-custom-metrics/azure-cafe-index.png"alt-text="Screenshot of the Azure Cafe web application."lightbox="media/tutorial-asp-net-custom-metrics/azure-cafe-index.png":::
:::imagetype="content"source="media/tutorial-asp-net-custom-metrics/cafe-details-button.png"alt-text="Screenshot of a portion of the Azure Cafe list with the Details button highlighted."lightbox="media/tutorial-asp-net-custom-metrics/cafe-details-button.png":::
:::imagetype="content"source="media/tutorial-asp-net-custom-metrics/cafe-add-review-button.png"alt-text="Screenshot of the Cafe details screen with the Add review button highlighted."lightbox="media/tutorial-asp-net-custom-metrics/cafe-add-review-button.png":::
298
298
299
299
3. OntheCreateareviewdialog, enteraname, rating, comments, anduploadaphotofor the review. Once completed, select **Add review**.
300
300
301
-

301
+
:::image type="content" source="media/tutorial-asp-net-custom-metrics/create-a-review-dialog.png" alt-text="Screenshot of the Create a review dialog." lightbox="media/tutorial-asp-net-custom-metrics/create-a-review-dialog.png":::
302
302
303
303
4. Repeat adding reviews as desired to generate more telemetry.
304
304
305
305
### View logs in Application Insights
306
306
307
307
1. Go to the **Application Insights** resource in the [Azure portal](https://portal.azure.com).
:::imagetype="content"source="media/tutorial-asp-net-custom-metrics/application-insights-resource-group.png"alt-text="Third screenshot of a resource group with the Application Insights resource highlighted."lightbox="media/tutorial-asp-net-custom-metrics/application-insights-resource-group.png":::
0 commit comments