(simple piano music)
- [Instructor] This is Kayode with the Azure Monitor team.
In this video tutorial, I'll walk you through the process
of creating metric charts in Metric Expolorer.
I'll show you how you can visualize
and analyze the behavior of several
compute and storage metrics as they change over time.
In this first scenario, I'm asked
to create a chart that plots the consumption
of CPU on a single virtual machine.
I can approach this task in one of two ways.
I can start by finding the resource and clicking on metrics,
or, as I'll do in this case,
I can start in Azure Monitor and
set my scope to the VM of interest.
Next, I'll modify the chart to include
both average and maximum CPU usage.
When I'm happy with the final product,
I'll add it to an existing dashboard
that can be shared with my team.
So now we'll start with Azure Monitor,
and click on explore metrics.
This takes me to a blank Metric Explorer,
where I can select a resource,
metric, time range, and chart type.
Up first, I'll set my scope by selecting the VM.
To do this, I'll select the resource type,
then subscription, and then the resource group.
And then I'll choose my VM.
Next, I'll set the metric name space
to virtual machine host.
The term name space here simply
refers to the grouping of metrics.
I'll change the metric to percentage CPU,
but I'll leave the default aggregation set to average,
and leave the default time setting
set to the last 24 hours, in five minute granularity.
I'll also point out that other
visualization styles are available,
depending on your use case,
and the type of metrics to be plotted.
Now this is a great start, but it's not
exactly what I'm looking for at this point.
So I'll make a couple of changes,
to include max percentage CPU.
Now I'll click on add metric,
and use the same settings as before,
but this time I'll set my aggregation
to max instead of average.
Lastly, I'll pin the chart to an existing dashboard.
But I won't show the dashboard just yet,
we'll get to the dashboard after
I've pinned a few more charts to it in scenario number two.
In this second scenario, I'm starting with Azure services,
and I'm interested in monitoring the transactions
for a specific storage account.
Again, I can approach this task
by starting with Azure Monitor,
and navigating to Metric Explorer,
or as I'll do in this case,
I can find the resource and launch Metric Explorer
in the context of the resource itself.
Then I'll create the charts that I need,
including one of all transactions,
and another for transactions split by response type.
And finally, I'll pin the charts
to the same dashboard that I used before.
I'll start the process by performing a global search
to find a relevant storage account.
Next I'll click on metrics.
Notice that Metric Explorer will be launched
with the scope already prepopulated with my resource.
Now, I'll set the metric name space to account.
This account name space includes
all transactions across all storage types.
I'll set transactions as my metric,
and the only aggregation available
for this metric is sum, since it represents
a count of the number of transactions.
I can now take things a step further
to explore some of the advanced
capabilities of metric charts.
In this example, I'd like to analyze
how many of my storage transactions
were successful or failed,
and what type of failures did
the failed transactions experience?
This can be accomplished with splitting.
For metrics that include multiple dimensions,
that is when their values can be grouped
by some additional property.
Splitting is an option to chart the metrics
by each of these properties separately.
I'll click on apply splitting,
and I'll set the splitting value to response type.
After the selection, the graph updates to include two lines.
One for successes and another for client errors.
Finally, let's explore a few different chart types.
I'll change the chart type from line chart to bar chart,
and pin it to our dashboard.
And again, I'll change the chart type
from bar chart to grid,
and pin it to the dashboard a second time.
In this last example, because of the difference
in magnitude between successful and failed transactions,
it's probably a good idea to show the grid
with the raw counts in addition
to the charts that were just created.
I'll wrap up the discussion by showing
the dashboard that contains all the charts
that were created during this presentation.
Here's a single pane of glass,
that includes dashboard elements
using a variety of visualization styles
based on data from different resource types.
Contains VM CPU usage, and the storage account
transaction charts all on the same dashboard.
In this demonstration, I've only
covered a few examples of what can
be accomplished with metric charts.
Once you are more comfortable with using Metric Explorer,
and more familiar with the metrics
available on Azure, you'll be able
to create the charts that you need on demand,
explore correlation across multiple metrics,
and build custom dashboards for various roles,
and use for groups within your organization.
Thank you for watching this short tutorial
on metric charts, and remember
to leverage the capabilities for your
monitoring triage and investigation needs.