REST API for Azure Stack HCI with Monitoring insight

Aishwarya Upadhye 66 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 Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,418 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,405 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 27,581 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://learn.microsoft.com/en-us/azure-stack/hci/manage/monitor-cluster-with-metrics

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

    https://learn.microsoft.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://learn.microsoft.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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.