- Microsoft Azure Administrator:Exam Guide AZ-103
- Sjoukje Zaal
- 370字
- 2021-06-24 14:01:57
Creating a metric
To display the metrics for the various Azure resources in Azure Monitor, perform the following steps:
- Navigate to the Azure portal by opening https://portal.azure.com.
- In the left-hand menu, select Monitoring to open the Azure Monitor overview blade:

Azure Monitor overview
- First, we're going to look at metrics. Therefore, in the left-hand menu, select Metrics, or select the Explore Metrics button from the overview blade.
- In the Metrics overview blade, click on the + Select a resource button. A new blade will open up where you can select the subscription, the resource group, and the resource type. Select the subscription that was used for the demonstration of the previous chapter, select PacktResourceGroup, and then select the VM (in my case, Linux). You can filter by other resource types, as well:

Selecting the resources
- Click on Apply.
- Then, you can select the metric type. Select CPU Credits Consumed, for instance:

Metric type
Take some time to look at the different metrics that you can choose from. This may be a part of the exam questions.
- You can select a different type of aggregation as well, like the count, average, and more, in the filter box. In the top-right of the blade, you can select a different time range for your metric as well:

Time ranges
- You can also pin this metric to the overview dashboard in the Azure portal. Therefore, click on the Pin to dashboard button, and then choose to pin it to the current dashboard or create a new dashboard for it. For now, select Pin to current dashboard:

Pin metric to dashboard
- If you now select Dashboard from the left-hand menu, you'll see that this metric is added to it. This way, you can easily analyze this metric without the need to open Azure Monitor.
Metrics are also available directly from the Azure resource blades. So, for instance, if you have a VM, go to the VM resource by selecting it. Then, in the left-hand menu, under Monitoring, you can select Metrics.
In the next section, we're going to look at how to set up and analyze alerts in Azure Monitor.
推薦閱讀
- Modern Web Testing with TestCafe
- 從零開始寫Linux內(nèi)核:一書學(xué)透核心原理與實(shí)現(xiàn)
- Kali Linux滲透測試全流程詳解
- Ubuntu Linux操作系統(tǒng)
- Mastering KVM Virtualization
- Windows Phone 7.5 Data Cookbook
- 新手易學(xué):系統(tǒng)安裝與重裝
- Windows Server 2012 Hyper-V Cookbook
- Windows Phone應(yīng)用程序開發(fā)
- 深入理解eBPF與可觀測性
- RHCSARHCE 紅帽Linux認(rèn)證學(xué)習(xí)指南(第7版)EX200 & EX300
- Troubleshooting Docker
- 分布式高可用架構(gòu)之道
- Raspberry Pi入門指南
- Windows網(wǎng)絡(luò)編程(第2版)