For each managed HSM you can navigate to the Metrics tab in the left-hand sidebar, under Monitoring, in the Azure portal to view the following metrics:
- Overall service API latency
- Overall service availability
- Total service API hits
Customers can also analyze monitoring data in the Azure Monitor Logs / Log Analytics store using the Kusto query language (KQL). By writing custom queries, customers can get details on their logs about operations and errors important for auditing as well as troubleshooting purposes. Some example queries are:
- Are there any slow requests?
- How active has this Managed HSM been?
- Who is calling this Managed HSM?
Azure Monitor also provides Alerts for proactively fixing any issues before there is an impact. With Alert rules, customers can get notified whenever a metric crosses a threshold. Azure Advisor alerts allow customers to create alerts for specific recommendations such as creating a backup of an HSM within a given amount of time.
To learn more about this feature, refer to: