Set up alerts for Azure Stack HCI systems

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

This article describes how to set up alerts for Azure Stack HCI systems, using pre-existing sample log queries such as average node CPU, available memory, available volume capacity and more. To use the sample queries, you must first enable logs, and then associate a log analytics workspace with your Azure Stack HCI system. Additionally, you'll see how to configure Azure Insights for monitoring resources and setting up alerts.

Set up alerts using sample Log queries

  1. From the Azure portal, navigate to Azure Monitor > Logs.

  2. Select + Add filter to add a filter for Resource type and choose Azure Stack HCI. Here you'll get a populated list of sample logs for Azure Stack HCI.

    Screenshot of the Azure Monitor Logs space and how to access the sample queries.

  3. Select Load to Editor to open the query workspace.

  4. Set the scope to Log analytics workspace for logs linked to the cluster resource.

  5. Add your Cluster Arm ID in the where ClusterArmId =~ section of the query to see results related to your cluster.

    Screenshot of the log analytics workspace and Cluster Arm Id query.

  6. Select Run.

Once the information is populated, you can analyze the logs and set up alerts on the results.

Set up alerts using Insights

Alerts can be set up in Azure portal, using Azure Insights workbooks, if the Insights function has been configured for your Azure Stack HCI system. If your resources aren't monitored, see How to configure Azure portal to monitor Azure Stack HCI clusters - Azure Stack HCI | Microsoft Docs to enable Insights monitoring before setting up alerts.

Important

It could take 15 minutes to collect these logs and isn't a recommended method for high severity alerts.

  1. From Azure portal, navigate to Azure Monitor > Azure Stack HCI Insights (preview). Here you'll access the Insights.

    Screenshot of Azure Stack HCI monitoring screen and the resources that are set up for alerts.

  2. Once the workbook is loaded, select one of the tabs to view the health of those resources. For example, select Servers to view the health of servers in your cluster.

    Screenshot of the monitored resources and the resources health.

  3. Select the blue Logs view icon, highlighted above on the far right, to view and edit the query.

  4. After the query loads, select the + New alert rule option.

    Screenshot of the cluster New alert rule and how to create a new alert.

  5. From the alerts interface you can set up alert rules and send notifications.

    Screenshot of items to define when a new alert is being created.

Next steps