Monitor Azure Stack HCI with Azure Monitor HCI Insights

Applies to: Azure Stack HCI, versions 22H2 and 21H2

This article explains how to monitor an Azure Stack HCI cluster using Azure Stack HCI Insights. HCI Insights is a feature of Azure Monitor that quickly gets you started monitoring your Azure Stack HCI cluster. You can view key metrics, health, and usage information regarding cluster, servers, virtual machines, and storage.

Benefits of Azure Stack HCI Insights

Azure Stack HCI Insights provides three primary benefits:

If you haven't already, be sure to Register your cluster with Azure. After you've enabled logs and monitoring, you can use Azure Stack HCI Insights to monitor cluster health, performance, and usage. Monitoring an Azure Stack HCI cluster from Azure portal requires every server in the cluster to be Azure Arc-enabled. If you registered your cluster on or after June 15, 2021, this happens by default. Otherwise, you'll need to enable Azure Arc integration.

  • It's managed by Azure and accessed from Azure portal, so it's always up to date, and there's no database or special software setup required.

  • It's highly scalable, capable of loading more than 400 cluster information sets across multiple subscriptions at a time, with no boundary limitations on cluster, domain, or physical location.

  • It's highly customizable. The user experience is built on top of Azure Monitor workbook templates, allowing users to change the views and queries, modify or set thresholds that align with the users' limits, and save these customizations into a workbook. Charts in the workbooks can then be pinned to Azure dashboards.

We recommend that you use the new HCI Insights experience with Azure Monitor Agent (AMA) as AMA is faster, more secure and more performant. You can onboard new nodes to AMA or can also migrate your existing nodes from the Legacy agent to AMA. See the New tab below to configure HCI Insights. If you need to stay with the older experience, see the Legacy tab below.

This article explains how to monitor an Azure Stack HCI cluster using Azure Stack HCI Insights. HCI Insights is a feature of Azure Monitor that quickly gets you started monitoring your Azure Stack HCI cluster. You can view useful insights regarding cluster, servers, virtual machines, and storage.

HCI Insights installs the Azure Monitor Agent and helps you to configure Data Collection rules for monitoring your Azure Stack HCI cluster.

In the May 2023 cumulative update for Azure Stack HCI, version 22H2, a feature enhancement has been made to the Azure Stack HCI operating system that enables on-premises Azure Stack HCI systems to be monitored with Azure Monitor HCI Insights.

We recommend that you use the new Insights experience with Azure Monitor Agent (AMA) as AMA is faster, more secure and more performant. You can onboard new nodes to AMA or can also migrate your existing nodes from the legacy Log Analytics (MMA) agent to AMA.

Once the prerequisite are met, the Get Started button for Insights onboarding is enabled.

Prerequisites for enabling Insights

There are several prerequisites for using Azure Stack HCI Insights:

  • Azure Stack HCI cluster should be registered with Azure and Arc-enabled. If you registered your cluster on or after June 15, 2021, this happens by default. Otherwise, you'll need to enable Azure Arc integration.

  • The cluster must have Azure Stack HCI version 22H2 and the May 2023 cumulative update or later installed.

  • Enable the managed identity for the Azure resource. For more information, see Enabled enhanced management.

Enable Insights

Enabling Insights helps you monitor all Azure Stack HCI clusters currently associated with the Log Analytics workspace by providing useful health metrics. To enable this capability from the Azure portal, follow these steps:

  1. In the Azure portal, browse to your Azure Stack HCI cluster resource page, then select your cluster. Under the Capabilities tab, select Insights.

    Screenshot showing the Insights tile.

  2. On the welcome screen. Select Get started.

    Screenshot showing the Get Started button.

    Note

    The Get Started button is only available for version 22H2 with the May 2023 cumulative update or later installed and only after the managed identity is enabled. Otherwise this button is disabled.

  3. In the Insights configuration window, select an existing Data Collection Rule (DCR) or create a new DCR and then select Set up. These rules specify the event logs and performance counters that need to be collected and stores it in a Log Analytics workspace.

    Screenshot showing the Insights configuration window.

  4. The New data collection rule window is displayed:

    Screenshot showing the data collection rule window.

    If a DCR hasn't already been created for the unmonitored cluster, then one will be created with performance counters enabled and the Windows event log channel enabled.

  5. Do one of the following:

    • Create a new DCR by selecting Create new in the Insights configuration window. Specify the subscription, DCR name, and Data Collection Endpoint (DCE) (optional), and then select the Review + create button. DCEs are used to access the configuration service to fetch associated DCRs for Azure Monitor agent.

    • Select an existing DCR from the dropdown:

    Screenshot showing the data collection rule dropdown selector.

    Only DCRs enabled for Azure Stack HCI insights will be included. The DCR specifies the data to collect and the workspace to use. HCI insights creates a default DCR if one doesn't already exist.

    Important

    Don't create your own DCR. The DCR created by Azure Stack HCI Insights includes a special data stream required for its operation. You can edit this DCR to collect more data, such as Windows and Syslog events, but you should create additional DCRs and associate them with the computer if required. The DCRs created through AMA installation will have a prefix AzureStackHCI- attached with the DCR name.

  6. Review the final screen with a summary of DCR name, number of event logs, performance counters, and name of the Log Analytics workspace in which data is stored. Select Set up.

  7. After clicking Set up, you are redirected to the Extensions page, where you can see the status of your agent installation. By configuring Insights, AMA is automatically installed on all nodes of the cluster.

  8. Insights should now show as Configured on the Capabilities tab:

    Screenshot showing the Insights tile as Configured.

Data Collection Rule (DCR)

When you enable Azure Stack HCI insights on a machine with the Azure Monitor agent, you must specify a DCR to use. The DCR specifies the event logs and performance counters that need to be collected and stores it in a Log Analytics workspace.

Option Description
Performance Counters Specifies what data performance counters to collect from the operating system. This option is required for all computers. These performance counters are used to populate the visualizations in the Insights workbook. Currently, Azure Stack HCI Insights workbook uses 5 performance counters - Memory()\Available Bytes, Network Interface()\Bytes Total/sec, Processor(_Total)\% Processor Time, RDMA Activity()\RDMA Inbound Bytes/sec, and RDMA Activity()\RDMA Outbound Bytes/sec
Event Log Channel Specifies which Windows event logs to collect from the operating system. This option is required for all computers. Windows event logs are used to populate the visualizations in the Insights workbook. Currently, data is collected through two Windows event log channels: - microsoft-windows-health/operational and microsoft-windows-sddc-management/operational
Log Analytics workspace Workspace to store the data. Only workspaces with Azure Stack HCI Insights are listed.

Event channel

The Microsoft-windows-sddc-management/operational and Microsoft-windows-health/operational Windows event channel will be added to your Log Analytics workspace under Windows event logs.

Screenshot showing Add data source window.

By collecting these logs, Insights will show the health status of the individual servers, drives, volumes, and VMs. By default, five performance counters are added.

Performance counters

By default, five performance counters are added:

Screenshot showing performance counters added.

The following table describes the performance counters that are monitored:

Performance counters Description
Memory(*)\Available Bytes Available Bytes is the amount of physical memory, in bytes, immediately available for allocation to a process or for system use.
Network Interface(*)\Bytes Total/sec The rate at which bytes are sent and received over each network adapter, including framing characters. Bytes Total/sec is a sum of Bytes Received/sec and Bytes Sent/sec.
Processor(_Total)% Processor Time The percentage of elapsed time that all of process threads used the processor to execution instructions.
RDMA Activity(*)\RDMA Inbound Bytes/sec Rate of data received over RDMA by the network adapter per second.
RDMA Activity(*)\RDMA Outbound Bytes/sec Rate of data sent over RDMA by the network adapter per second.

After you enable Insights, it can take up to 15 minutes to collect the data. When the process is finished, you'll be able to see a rich visualization of the health of your cluster from the Insights menu on the left pane:

Screenshot showing Insight visualizations.

Insights visualizations

Once Insights is enabled, the following tables provide details about all resources.

Health

Provides health faults on a cluster.

Metric Description Unit Example
Fault A short description of health faults. On clicking the link, a side panel opens with more information. No unit PoolCapacityThresholdExceeded
Faulting resource type The type of resource that encountered a fault. No unit StoragePool
Faulting resource ID Unique ID for the resource that encountered a health fault. Unique ID {1245340c-780b-4afc-af3c-f9bdc4b12f8a}: SP:{c57f23d1-d784-4a42-8b59-4edd8e70e830}
Severity Severity of fault could be warning or critical. No unit Warning
Initial fault time Timestamp of when server was last updated. Datetime 4/9/2022, 12:15:42 PM

Server

Metric Description Unit Example
Servers The names of the servers in the cluster. No unit VM-1
Last updated The date and time of when the server was last updated. Datetime 4/9/2022, 12:15:42 PM
Status The health of server resources in the cluster. It can be healthy, warning, critical, and other Healthy
CPU usage The % of time the process has used the CPU. Percent 56%
Memory usage Memory usage of the server process is equal to counter Process\Private Bytes plus the size of memory-mapped data. Percent 16%
Logical processors The number of logical processors. Count 2
CPUs The number of CPUs. Count 2
Uptime The time during which a machine, especially a computer, is in operation. Timespan 2.609 hr.
Site The name of the site to which the server belongs. Site name SiteA
Domain name The local domain to which the server belongs. No unit Contoso.local

Virtual machines

Provides the state of all the virtual machines in the cluster. A VM can be in one of the following states: Running, Stopped, Failed, or Other (Unknown, Starting, Snapshotting, Saving, Stopping, Pausing, Resuming, Paused, Suspended).

Metric Description Unit Example
Servers The name of the server. No unit Sample-VM-1
Last Updated This gives the date and time of when the server was last updated Datetime 4/9/2022, 12:24:02 PM
Total VMs The number of VMs in a server node. Count 0 of 0 running
Running The number of VMs running in a server node. Count 2
Stopped The number of VMs stopped in a server node. Count 3
Failed The number of VMs failed in a server node. Count 2
Other If VM is in one of the following states (Unknown, Starting, Snapshotting, Saving, Stopping, Pausing, Resuming, Paused, Suspended), it is considered as "Other." Count 2

Storage

The following table provides the health of volumes in the cluster:

Metric Description Unit Example
Volumes The name of the volume No unit ClusterPerformanceHistory
Last updated The date and time of when the storage was last updated. Datetime 4/14/2022, 2:58:55 PM
Status The status of the volume. Healthy, warning, critical, and other. Healthy
Total capacity The total capacity of the device in bytes during the reporting period. Bytes 2.5GB
Available capacity The available capacity in bytes during the reporting period. Bytes 20B
Iops Input/output operations per second. Per second 45/s
Throughput Number of bytes per second the Application Gateway has served. Bytes per second 5B/s
Latency The time it takes for the I/O request to be completed. Second 0.0016s
Resiliency The capacity to recover from failures. Maximizes data availability. No unit Three Way Mirror
Deduplication The process of reducing the physical amount of bytes of data that needs to be stored on disk. Available or not Yes/No
File system The type of filesystem. No unit ReFS

Disable Insights

To disable Insights, follow these steps:

  1. Select Insights under the Capabilities tab.

  2. Select Disable Insights.

    Screenshot showing the Disable Insights window.

When you disable the Insights feature, the association between the data collection rule and the cluster is deleted and the Health Service and SDDC Management logs are no longer collected; however, existing data is not deleted. If you'd like to delete that data, go into your DCR and Log Analytics workspace and delete the data manually.

Update Insights

The Insights tile shows a Needs update message in the following cases:

  • A data collection rule has changed.
  • A health event from the Windows events log is deleted.
  • Any of the five performance counters from the Log Analytics workspace are deleted.

To enable Insights again, do the following:

  1. Select the Insights tile under Capabilities.

  2. Select Update to see the visualizations again.

Screenshot showing the Update Insights window.

Migrate from the Microsoft Monitoring Agent

  1. To migrate from the Microsoft Monitoring Agent (MMA) to the Azure Monitoring Agent (AMA), scroll down to Insights.

    Screenshot showing the Install AMA window.

  2. Select Install AMA; the Insights configuration window opens.

    Screenshot showing the Data collection rules window.

  3. Select or create a data collection rule as mentioned previously in the Enable Insights section.

The Azure Monitor agent and the Microsoft Monitoring Agent extension can both be installed on the same computer during migration. Running both agents might lead to duplication of data and increased cost. If a machine has both agents installed, you'll see a warning in the Azure portal that you might be collecting duplicate data, as shown below.

Warning

Collecting duplicate data from a single machine with both the Azure Monitor agent and the Microsoft Monitoring Agent extension can result in extra ingestion cost from sending duplicate data to the Log Analytics workspace.

Screenshot showing a data duplication warning.

You must remove the Microsoft Monitoring Agent extension yourself from any computers that are using it. Before you do this step, ensure that the computer isn't relying on any other solutions that require the Microsoft Monitoring Agent. After you verify that MicrosoftMonitoringAgent is not still connected to your Log Analytics workspace, you can remove MicrosoftMonitoringAgent manually by redirecting to the Extensions page.

Screenshot showing the Extensions list.

Azure Monitor pricing

As described previously, when you enable monitoring visualization, logs are collected from:

  • Health Management (Microsoft-windows-health/operational).
  • SDDC Management (Microsoft-Windows-SDDC-Management/Operational; Event ID: 3000, 3001, 3002, 3003, 3004).

You are billed based on the amount of data ingested and the data retention settings of your Log Analytics workspace.

Azure Monitor has pay-as-you-go pricing, and the first 5 GB per billing account per month is free. Because pricing can vary due to multiple factors, such as the region of Azure you're using, visit the Azure Monitor pricing calculator for the most up-to-date pricing calculations.

Troubleshooting

For troubleshooting steps, see Troubleshooting guidance for the Azure Monitor agent.

Next steps