|
| 1 | +--- |
| 2 | +title: Monitoring data reference for Azure Bastion |
| 3 | +description: This article contains important reference material you need when you monitor Azure Bastion by using Azure Monitor. |
| 4 | +ms.date: 12/02/2024 |
| 5 | +ms.custom: horz-monitor |
| 6 | +ms.topic: reference |
| 7 | +author: cherylmc |
| 8 | +ms.author: cherylmc |
| 9 | +ms.service: azure-bastion |
| 10 | +--- |
| 11 | +# Azure Bastion monitoring data reference |
| 12 | + |
| 13 | +[!INCLUDE [horz-monitor-ref-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-intro.md)] |
| 14 | + |
| 15 | +See [Monitor Azure Bastion](monitor-bastion.md) for details on the data you can collect for and how to use it. |
| 16 | + |
| 17 | +[!INCLUDE [horz-monitor-ref-metrics-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-intro.md)] |
| 18 | + |
| 19 | +> [!NOTE] |
| 20 | +> We don't recommend that your use *Classic Metrics*. |
| 21 | +
|
| 22 | +### Supported metrics for microsoft.network/bastionHosts |
| 23 | + |
| 24 | +The following table lists the metrics available for the microsoft.network/bastionHosts resource type. |
| 25 | + |
| 26 | +[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)] |
| 27 | + |
| 28 | +[!INCLUDE [microsoft.network/bastionHosts](~/reusable-content/ce-skilling/azure/includes/azure-monitor/reference/metrics/microsoft-network-bastionhosts-metrics-include.md)] |
| 29 | + |
| 30 | +> [!NOTE] |
| 31 | +> The Bastion Communication Status metric only applies to Azure Bastion hosts deployed after November 2020. |
| 32 | +
|
| 33 | +### Metrics details |
| 34 | + |
| 35 | +The following sections give details about the metrics in the preceding table. |
| 36 | + |
| 37 | +#### Bastion communication status |
| 38 | + |
| 39 | +You can view the communication status of Azure Bastion, aggregated across all instances comprising the bastion host. |
| 40 | + |
| 41 | +- A value of **1** indicates that the bastion is available. |
| 42 | +- A value of **0** indicates that the bastion service is unavailable. |
| 43 | + |
| 44 | +:::image type="content" source="./media/metrics-monitor-alert/communication-status.png" alt-text="Screenshot that shows the communication status metric in the Azure portal."::: |
| 45 | + |
| 46 | +Bastion communication status is an Availability metric. |
| 47 | + |
| 48 | +#### Session count |
| 49 | + |
| 50 | +You can view the count of active sessions per bastion instance, aggregated across each session type (RDP and SSH). Each Azure Bastion can support a range of active RDP and SSH sessions. Monitoring this metric helps you to understand if you need to adjust the number of instances running the bastion service. For more information about the session count Azure Bastion can support, see the [Azure Bastion FAQ](bastion-faq.md). |
| 51 | + |
| 52 | +The recommended values for this metric's configuration are: |
| 53 | + |
| 54 | +- **Aggregation:** Avg |
| 55 | +- **Granularity:** 5 or 15 minutes |
| 56 | +- Splitting by instances is recommended to get a more accurate count |
| 57 | + |
| 58 | +:::image type="content" source="./media/metrics-monitor-alert/session-count.png" alt-text="Screenshot that shows the session count metric in the Azure portal."::: |
| 59 | + |
| 60 | +Session count is a Traffic metric. |
| 61 | + |
| 62 | +#### Total memory |
| 63 | + |
| 64 | +You can view the total memory of Azure Bastion, split across each bastion instance. |
| 65 | + |
| 66 | +:::image type="content" source="./media/metrics-monitor-alert/total-memory.png" alt-text="Screenshot that shows the total memory metric in the Azure portal."::: |
| 67 | + |
| 68 | +Total memory is a Saturation metric. |
| 69 | + |
| 70 | +#### CPU usage |
| 71 | + |
| 72 | +You can view the CPU utilization of Azure Bastion, split across each bastion instance. Monitoring this metric helps gauge the availability and capacity of the instances that comprise Azure Bastion. |
| 73 | + |
| 74 | +:::image type="content" source="./media/metrics-monitor-alert/used-cpu.png" alt-text="Screenshot that shows the CPU used metric in the Azure portal."::: |
| 75 | + |
| 76 | +CPU usage is a Saturation metric. |
| 77 | + |
| 78 | +#### Memory usage |
| 79 | + |
| 80 | +You can view memory utilization across each bastion instance, split across each bastion instance. Monitoring this metric helps gauge the availability and capacity of the instances that comprise Azure Bastion. |
| 81 | + |
| 82 | +:::image type="content" source="./media/metrics-monitor-alert/used-memory.png" alt-text="Screenshot that shows the memory used metric in the Azure portal."::: |
| 83 | + |
| 84 | +Memory usage is a Saturation metric. |
| 85 | + |
| 86 | +[!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)] |
| 87 | + |
| 88 | +[!INCLUDE [horz-monitor-ref-metrics-dimensions](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions.md)] |
| 89 | + |
| 90 | +- cpu |
| 91 | +- host |
| 92 | + |
| 93 | +[!INCLUDE [horz-monitor-ref-resource-logs](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-resource-logs.md)] |
| 94 | + |
| 95 | +### Supported resource logs for microsoft.network/bastionHosts |
| 96 | + |
| 97 | +[!INCLUDE [microsoft.network/bastionHosts](~/reusable-content/ce-skilling/azure/includes/azure-monitor/reference/logs/microsoft-network-bastionhosts-logs-include.md)] |
| 98 | + |
| 99 | +[!INCLUDE [horz-monitor-ref-logs-tables](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-logs-tables.md)] |
| 100 | + |
| 101 | +### Azure Bastion microsoft.network/bastionHosts |
| 102 | + |
| 103 | +- [AzureActivity](/azure/azure-monitor/reference/tables/azureactivity#columns) |
| 104 | +- [AzureMetrics](/azure/azure-monitor/reference/tables/azuremetrics#columns) |
| 105 | +- [MicrosoftAzureBastionAuditLogs](/azure/azure-monitor/reference/tables/microsoftazurebastionauditlogs#columns) |
| 106 | + |
| 107 | +[!INCLUDE [horz-monitor-ref-activity-log](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-activity-log.md)] |
| 108 | + |
| 109 | +- [Networking resource provider operations](/azure/role-based-access-control/resource-provider-operations#microsoftnetwork) |
| 110 | + |
| 111 | +## Related content |
| 112 | + |
| 113 | +- See [Monitor Azure Bastion](monitor-bastion.md) for a description of monitoring Azure Bastion. |
| 114 | +- See [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for details on monitoring Azure resources. |
0 commit comments