REST API for Azure Stack HCI with Monitoring insight

Aishwarya Upadhye 61 Reputation points
2023-12-07T07:37:50.5233333+00:00

Hello,

Is there a REST API available to monitor the health of Azure Stack HCI clusters? Additionally, is there an API to monitor the usage performance, such as memory and CPU, of the server? The images provided show the details I am interested in. Thank you.

User's image

User's image

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
301 questions
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,971 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,941 Reputation points
    2023-12-12T07:18:45.5133333+00:00

    Hi @Aishwarya Upadhye

    Thank you for reaching out to the Microsoft Q&A platform.

    There is no such API REST that you can use to monitor health of Azure Stack HCI resources. However, you can leverage the Azure Monitor Metrics and create alerts using Azure CLI

    Here's an example of the command usage:

    To create a metric alert rule that monitors if the average CPU usage of a VM is greater than 90, run the following command:

    az monitor metrics alert create -n {nameofthealert} -g {ResourceGroup} --scopes {VirtualMachineResourceID} --condition "avg Percentage CPU > 90" --description {descriptionofthealert}
    

    Please follow the below link for more details:

    https://video2.skills-academy.com/en-us/azure-stack/hci/manage/monitor-cluster-with-metrics

    https://video2.skills-academy.com/en-us/azure-stack/hci/manage/monitor-cluster-with-metrics#what-metrics-are-collected

    https://video2.skills-academy.com/en-us/azure-stack/hci/manage/monitor-cluster-with-metrics#analyze-metrics-and-create-alerts-for-a-specific-cluster

    Please note this feature is in Preview currently, See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

    https://video2.skills-academy.com/en-us/rest/api/stackhci/operation-groups?view=rest-stackhci-2023-08-01

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    0 comments No comments