- 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.
推薦閱讀
- 30天自制操作系統(tǒng)
- Implementing Cisco UCS Solutions
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Mobile-first Bootstrap
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程(Windows 7+Office 2013)
- 計(jì)算機(jī)系統(tǒng)開發(fā)與優(yōu)化實(shí)戰(zhàn)
- Moodle 3.x Teaching Techniques(Third Edition)
- Windows Server 2019 Administration Fundamentals
- STM32庫(kù)開發(fā)實(shí)戰(zhàn)指南:基于STM32F4
- 嵌入式實(shí)時(shí)操作系統(tǒng)μC/OS原理與實(shí)踐
- Cassandra 3.x High Availability(Second Edition)
- Windows 7實(shí)戰(zhàn)從入門到精通
- Linux操作系統(tǒng)
- Learn SwiftUI
- UI設(shè)計(jì)手繪表現(xiàn)從入門到精通