Create Alerts
Introduction
Through the development
of alert rules, Microsoft Azure offers resource alerting support. You can set
up alerts and notifications for your resources based on events or metric
thresholds by using alert rules. When an issue occurs, these alerts will make sure
that the right personnel is informed.
Alert Rules
Choose the Azure AI
services resource in the Azure portal, then build a new alert rule under the
Alerts tab. You must provide the following in order to define the alert rule:
- The scope of the alert rule, in other words, the resource you want to monitor.
- A condition on which the alert is triggered. The specific trigger for the alert is based on a signal type, which can be Activity Log (an entry in the activity log created by an action performed on the resource, such as regenerating its subscription keys) or Metric (a metric threshold such as the number of errors exceeding 10 in an hour).
- Optional actions, such as sending an email to an administrator notifying them of the alert, or running an Azure Logic App to address the issue automatically. Azure Logic Apps is a cloud-based platform for creating and running automated workflows that integrate your apps, data, services, and systems.
- Alert rule details, such as a name for the alert rule and the resource group in which it should be defined.
View Metrics
Azure Monitor gathers
measurements for Azure resources on a regular basis so you may monitor
performance, health, and resource use indicators. The Azure resource determines
the particular metrics that are collected. In the case of Azure AI services,
Azure Monitor collects metrics relating to endpoint requests, data submitted
and returned, errors, and other useful measurements.
View Metrics in the Azure
Portal
In the Azure portal, you
may view metrics for a specific resource by choosing it and going to its
Metrics page. You can add resource-specific metrics to charts on this page. An
empty chart is made for you by default, and you can add extra charts as needed.
You can select the right
aggregations and chart kinds, as well as add several metrics to a chart. When
you're happy with the chart, you can share it by exporting it to Excel or
copying a link to it. You can also clone it to make a duplicate chart on the data
page, which might serve as the basis for a new chart that displays the same
data in a different way.
Add Metrics to a Dashboard
To get a general idea of
the performance and health of your Azure resources, you can construct
dashboards in the Azure portal that include several visualizations from various
Azure environment resources.
To create a dashboard,
select Dashboard in the Azure portal menu (your default view may already be set
to a dashboard rather than the portal home page). From here, you can add up to
100 named dashboards to encapsulate views for specific aspects of your Azure
services that you want to track.
You can add a range of
tiles and other visualizations to a dashboard, and when viewing metrics for a
specific resource in a chart, you can add the chart to a new or existing
dashboard.
Conclusion
We have successfully
learnt about metrics and alert rules.
Comments
Post a Comment