Time
23 hours 16 minutes
Difficulty
Intermediate
CEU/CPE
7

Video Transcription

00:00
Hello and welcome back to Cyber Aires. Microsoft Azure Administrator A Z one of three course, I'm your instructor, Will Carlson. And this is Episode 11 about azure metrics.
00:09
In today's episode, we're gonna discuss what as your metrics are and where those come from, we're gonna discuss the properties of what every metric is goingto have, and we're gonna view some metrics in the azure portal.
00:23
So to get started, we're gonna jump here in the portal
00:26
to get started with metrics. We're gonna go in here to monitor into the monitor blade, and we're gonna talk about a number of these features as part of the easy 103 course. But our start here is gonna be with metrics and metrics in the azure ecosystem. Come from a number of sources, those air gonna be platform metrics, application metrics,
00:44
virtual machine custom metrics, and then custom metrics that you can send in via the rest. A p I the platform metrics are gonna be those that are created by azure. Resource is by default, such as our virtual machines have some metrics that are set up when you set up to be in
01:00
application metrics are gonna be those that come in from a custom application that you may have built If you've instrumented the application to send metrics toe azure when you built it,
01:11
you can also send in custom metrics from virtual machines using the windows diagnostic extension for Windows or the influx Data Telegraph agent for Lennox. And again, those custom metrics are gonna extend the metrics that air on by default for virtual machines
01:27
and last, like custom metrics of the arrest a p I if you encode it and send it envy arrest, you contract those metrics in azure as well.
01:36
No metrics are going to be collected every one minute by default, and they're gonna be retained for 93 days unless you send them off to a storage account or log analytics workspace.
01:48
Now, what we're looking at here is the metrics dashboard, and it is pretty blank. So let's collect Aries. Select a resource here.
01:57
We're gonna leave this in all subscriptions.
02:00
I'm gonna limit this to the I T resource group
02:05
and then I'm innocent. See, the resource is of this service desk could be in
02:12
and apply.
02:14
Now, I'm gonna select my metric. Let's do
02:17
I'm here at the bottom
02:20
percentage of CPU
02:22
and I can see over the last little bit. There has been no CPU utilization for this particular
02:29
BM and I know that to be true because this PM has been powered off for a little while.
02:34
So what can I do about that? Well, I can change the time frame that this is looking at. Let's look back over the last seven dates
02:42
and we can see that the average CPU utilization of this B M has never been very high. But there definitely was a time when this CPU with the SVM was turned on and the CPU was being used. Now let's set another metric here.
02:54
We're gonna go up here to add metric
02:57
and let's do something
03:00
totally different and let's do
03:02
we're gonna do network in total here.
03:07
Now you can see that this completely blew up my graph. And why is that? Well, well, the difference has to do with the range of values put in here. So CPU utilization was only about 1% and
03:22
network in total was much higher than that 183 megabytes.
03:27
So that's blown the grap. I do that on purpose. To call out that you've got to be careful on the units of all of the measures that you put into a particular metrics.
03:37
So if I leave this initial CPU now, this makes a whole lot more sense. So what if you want to see multiples of these? Well, it's relatively simple. You just add a new chart and put in the metrics that you want to see on that particular chart so we could go back here and put back in our
03:53
percentage CPU. And now I've got both metrics up at a time. So something else it's powerful about metrics is that
04:01
you can pin these metrics to the dashboard. So if these air particularly relevant metrics that you want to see as part of a dashboard, maybe you wanna have a CPU dashboard for all of your V EMS so you can watch CPU utilization across all of those beings. You could create a dashboard and do just that
04:17
by setting up the metric here, making sure it looks like you want, and then pinning that to the dashboard of your choice.
04:25
We'll talk about alerts and a future episode, but you can also create alerts here from these metrics. So a good example real quickly would be if you wanted to be notified when CPU utilization spiked above 90%
04:36
you could create alert rule that would ultimately notify you that that CPU utilization head spiked. So really great to be able to do that here from metrics Because as you're exploring the metrics, you may find some things that you want to be alerted about that you didn't necessarily know before instead of having to back out of metrics and then remember what it was you were setting. When you're creating the alert rule,
04:57
you can create the alert rule right from metrics themselves.
05:00
Something else testable. And to know about metrics is that every metric and azure is going to contain four things. And that's gonna be a time stamp,
05:09
the type of miss metric,
05:11
the resource the metric is associated with and the value. And if we think through those really quickly, that completely makes sense. So for anything to be chargeable here, I've got to know when it happened, I got to know what it's measuring. So
05:25
this happened on July 7th at 11 53. It's measuring a virtual machine resource, specifically the service desk VM. That's the specific resource, and the value is going to be
05:38
2.66%. So again, metrics have time type, resource
05:44
and value
05:46
something else to notice here. If I click off of this blade and go back to it,
05:50
Biometrics display is not saved.
05:54
Just a note. Don't spend a bunch of time building really pretty metrics Dashboard here and then expected to be there When it comes back, it will not. It will get deleted. If you like the metrics layout that you have sent him to your dashboard and look at them, they're on the ongoing.
06:08
One of the thing I want to mention about metrics is that they can be single or multi dimensional, and our CPU metric is going to be a single dimensional metric. It's got at a point in time. What resource and type is that? Metric and one value.
06:23
But there may be other metrics, particularly as it relates to a storage is a great example.
06:29
If we have a utilization of storage and we want to know out of that 80 megabytes, how much of that is used in each particular folder that would be a multi dimensional metric. It would all be rolled up into the one metric, and there will be multiple values split up for the folders within that metric.
06:47
And that's a little bit about metrics.
06:49
So in today's episode, we talked about the fact that metrics are collected every minute in azure. They have a time stamp type measurement, a resource that the metric was applied to and the value of that particular metric. So those four properties of metrics
07:04
we talked about the places that metrics originate, platform application, custom, virtual machine and custom metrics.
07:14
And we also talked about where you can go in portal to view those metrics. And that's the monitor blade on into metrics.
07:23
Up next, we're gonna talk about how you can collect even more details about the health of azure resource is that may not directly collect metrics by default.
07:31
Thanks for joining me today. I look forward to seeing you in the next episode

Up Next

AZ-103 Microsoft Azure Administrator

This is a training course for the Microsoft Azure AZ-103 Certification. The Microsoft Azure Administrator training course teaches students to perform tasks like managing Azure subscriptions and resources, implementing and managing storage, deploying and managing virtual machines (VM) and networks, and managing identities!

Instructed By

Instructor Profile Image
Will Carlson
Director of IT and Cybersecurity
Senior Instructor