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/container-apps/observability.md
+22-21Lines changed: 22 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: container-apps
5
5
author: cebundy
6
6
ms.service: container-apps
7
7
ms.topic: conceptual
8
-
ms.date: 03/25/2022
8
+
ms.date: 04/11/2022
9
9
ms.author: v-bcatherine
10
10
---
11
11
@@ -25,7 +25,7 @@ These features include:
25
25
26
26
## Azure Monitor metrics
27
27
28
-
The Azure Monitor metrics feature allows you to monitor your app's compute and network usage. These metrics are available to view and analyze through the [metrics explorer in the Azure portal](/../azure-monitor/essentials/metrics-getting-started). Metric data is also available through the [Azure CLI](/cli/azure/monitor/metrics), and Azure [PowerShell cmdlets](/powershell/module/az.monitor/get-azmetric).
28
+
The Azure Monitor metrics feature allows you to monitor your app's compute and network usage. These metrics are available to view and analyze through the [metrics explorer in the Azure portal](../azure-monitor/essentials/metrics-getting-started.md). Metric data is also available through the [Azure CLI](/cli/azure/monitor/metrics), and Azure [PowerShell cmdlets](/powershell/module/az.monitor/get-azmetric).
29
29
30
30
### Available metrics for Container Apps
31
31
@@ -45,7 +45,7 @@ The metrics namespace is `microsoft.app/containerapps`.
45
45
46
46
Using the Azure portal, navigate to your container apps **Overview** page. The **Monitoring** section displays the current CPU, memory, and network utilization for your container app.
47
47
48
-
:::image type="content" source="media/observability/metrics-in-overview-page.png" alt-text="Monitoring section in container app overview":::
48
+
:::image type="content" source="media/observability/metrics-in-overview-page.png" alt-text="Screenshot of the Monitoring section in the container app overview page.":::
49
49
50
50
From this view, you can pin one or more charts to your dashboard. When you select a chart, it's opened in the metrics explorer.
51
51
@@ -57,19 +57,19 @@ The metrics page allows you to create and view charts to display your container
57
57
58
58
When you first navigate to the metrics explorer, you'll see the main page. From here, select the metric that you want to display. You can add more metrics to the chart by selecting **Add Metric** in the upper left.
:::image type="content" source="media/observability/metrics-main-page.png" alt-text="Screenshot of the metrics explorer from the container app resource page.":::
61
61
62
62
You can filter your metrics by revision or replica. For example, to filter by a replica, select **Add filter**, then select a replica from the *Value* drop-down. You can also filter by your container app's revision.
63
63
64
-
:::image type="content" source="media/observability/metrics-add-filter.png" alt-text="Add a filter to chart":::
64
+
:::image type="content" source="media/observability/metrics-add-filter.png" alt-text="Screenshot of the metrics explorer showing the chart filter options.":::
65
65
66
66
You can split the information in your chart by revision or replica. For example, to split by revision, select **Applying splitting** and select **Revision** as the value. Splitting is only available when the chart contains a single metric.
67
67
68
-
:::image type="content" source="media/observability/metrics-apply-splitting.png" alt-text="Apply spitting by revision to chart.":::
68
+
:::image type="content" source="media/observability/metrics-apply-splitting.png" alt-text="Screenshot of the metrics explorer that shows a chart with metrics split by revision.":::
69
69
70
70
You can view metrics across multiple container apps to view resource utilization over your entire application.
:::image type="content" source="media/observability/metrics-across-apps.png" alt-text="Screenshot of the metrics explorer that shows a chart with metrics for multiple container apps.":::
73
73
74
74
## Azure Monitor Log Analytics
75
75
@@ -97,7 +97,7 @@ You can run Log Analytic queries via the Azure portal, the Azure CLI or PowerShe
97
97
98
98
In the Azure portal, logs are available from either the **Monitor**->**Logs** page or by navigating to your container app and selecting the **Logs** menu item. From Log Analytics interface, you can query the logs based on the **CustomLogs>ContainerAppConsoleLogs_CL** table.
:::image type="content" source="media/observability/log-analytics-query-page.png" alt-text="Screenshot of the Log Analytics query editor.":::
101
101
102
102
Here's an example of a simple query, that displays log entries for the container app named *album-api*.
103
103
@@ -124,37 +124,37 @@ For more information, see [Viewing Logs](monitor.md#viewing-logs).
124
124
125
125
## Azure Monitor alerts
126
126
127
-
You can configure alerts to send notifications based on metrics values and Log Analytics queries. Alerts can be added from the metrics explorer and the Log Analytics interface in the Azure portal.
127
+
You can configure alerts to send notifications based on metrics values and Log Analytics queries. In the Azure portal, you can add alerts from the metrics explorer and the Log Analytics interface.
128
128
129
129
In the metrics explorer and the Log Analytics interface, alerts are based on existing charts and queries. You can manage your alerts from the **Monitor>Alerts** page. From this page, you can create metric and log alerts without existing metric charts or log queries. To learn more about alerts, refer to [Overview of alerts in Microsoft Azure](../azure-monitor/alerts/alerts-overview.md).
130
130
131
-
### Setting alerts in metrics explorer
131
+
### Setting alerts in the metrics explorer
132
132
133
133
Metric alerts monitor metric data at set intervals and trigger when an alert rule condition is met. For more information, see [Metric alerts](../azure-monitor/alerts/alerts-metric-overview.md).
134
134
135
-
In metrics explorer, you can create metric alerts based on Container Apps metrics. Once you create a metric chart, you're able to create alert rules based on the chart's settings. You can create an alert rule by selecting **New alert rule**.
135
+
in the metrics explorer, you can create metric alerts based on Container Apps metrics. Once you create a metric chart, you're able to create alert rules based on the chart's settings. You can create an alert rule by selecting **New alert rule**.
136
136
137
-
:::image type="content" source="media/observability/metrics-alert-new-alert-rule.png" alt-text="Create a new metric alert.":::
137
+
:::image type="content" source="media/observability/metrics-alert-new-alert-rule.png" alt-text="Screenshot of the metrics explorer highlighting the new rule button.":::
138
138
139
139
When you create a new alert rule, the rule creation pane is opened to the **Condition** tab. An alert condition is started for you based on the metric that you selected for the chart. You then edit the condition to configure threshold and other settings.
140
140
141
-
:::image type="content" source="media/observability/metrics-alert-create-condition.png" alt-text="Automatically created condition.":::
141
+
:::image type="content" source="media/observability/metrics-alert-create-condition.png" alt-text="Screenshot of the metric explorer alert rule editor. A condition is automatically created based on the chart settings.":::
142
142
143
143
You can add more conditions to your alert rule by selecting the **Add condition** option in the **Create an alert rule** pane.
144
144
145
-
:::image type="content" source="media/observability/metrics-alert-add-condition.png" alt-text="Add a condition to your alert rule.":::
145
+
:::image type="content" source="media/observability/metrics-alert-add-condition.png" alt-text="Screenshot of the metric explorer alert rule editor highlighting the Add condition button.":::
146
146
147
147
When you add an alert condition, the **Select a signal** pane is opened. This pane lists the Container Apps metrics from which you can select for the condition.
148
148
149
-
:::image type="content" source="media/observability/metrics-alert-select-a-signal.png" alt-text="Select a metric.":::
149
+
:::image type="content" source="media/observability/metrics-alert-select-a-signal.png" alt-text="Screenshot of the metric explorer alert rule editor showing the Select a signal pane.":::
150
150
151
151
After you've selected the metric, you can configure the settings for your alert condition. For more information about configuring alerts, see [Manage metric alerts](../azure-monitor/alerts/alerts-metric.md).
152
152
153
153
You can add alert splitting to the condition so you can receive individual alerts for specific revisions or replicas.
154
154
155
155
Example of setting a dimension for a condition:
156
156
157
-
:::image type="content" source="media/observability/metrics-alert-split-by-dimension.png" alt-text="Select split by replica":::
157
+
:::image type="content" source="media/observability/metrics-alert-split-by-dimension.png" alt-text="Screenshot of the metrics explorer alert rule editor. This example shows the Split by dimensions options in the Configure signal logic pane.":::
158
158
159
159
Once you create the alert rule, it's a resource in your resource group. To manage your alert rules, navigate to **Monitor>Alerts**.
160
160
@@ -164,11 +164,11 @@ Once you create the alert rule, it's a resource in your resource group. To mana
164
164
165
165
You can use Log Analytics queries to periodically monitor logs and trigger alerts based on the results. The Log Analytics interface allows you to add alert rules to your queries. Once you have created and run a query, you're able to create an alert rule.
166
166
167
-
:::image type="content" source="media/observability/log-alert-new-alert-rule.png" alt-text="Select new alert rule.":::
167
+
:::image type="content" source="media/observability/log-alert-new-alert-rule.png" alt-text="Screenshot of the Log Analytics interface highlighting the new alert rule button.":::
168
168
169
169
Selecting **New alert rule** opens the **Create an alert rule** editor, where you can configure the setting for your alerts.
170
170
171
-
:::image type="content" source="media/observability/log-alerts-rule-editor.png" alt-text="Create an alert rule.":::
171
+
:::image type="content" source="media/observability/log-alerts-rule-editor.png" alt-text="Screenshot of the Log Analytics alert rule editor.":::
172
172
173
173
To learn more about creating a log alert, see [Manage log alerts](../azure-monitor/alerts/alerts-log.md)
174
174
@@ -179,7 +179,7 @@ Enabling splitting will send individual alerts for each dimension you define. C
:::image type="content" source="media/observability/log-alerts-splitting.png" alt-text="Screenshot of the Log Analytics alert rule editor showing the Split by dimensions options":::
183
183
184
184
To learn more about log alerts, refer to [Log alerts in Azure Monitor](../azure-monitor/alerts/alerts-unified-log.md).
185
185
@@ -188,5 +188,6 @@ To learn more about log alerts, refer to [Log alerts in Azure Monitor](../azure-
188
188
189
189
## Next steps
190
190
191
-
-[Health probes in Azure Container Apps](health-probes.md)
192
-
-[Monitor an App in Azure Container Apps](monitor.md)
191
+
> [!div class="nextstepaction"]
192
+
> [Health probes in Azure Container Apps](health-probes.md)
193
+
> [Monitor an App in Azure Container Apps](monitor.md)
0 commit comments