Note
This documentation for Azure workbooks is now located at: https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-chart-visualizations#metric-charts Please do not edit this file. All up-to-date information is in the new location and documentation should only be updated there.
Most Azure resources emit metric data about state and health (e.g. CPU utilization, storage availability, count of database transactions, failing app requests, etc). Workbooks allow the visualization of this data as time-series charts.
The example below shows the number of transactions in a storage account over the prior hour. This allows the storage owner to see the transaction trend and look for anomalies in behavior.
- Switch the workbook to edit mode by clicking on the Edit toolbar item.
- Use the Add metric link to add a metric control to the workbook.
- Select a resource type (e.g. Storage Account), the resources to target, the metric namespace and name, and the aggregation to use.
- Set other parameters if needed - like time range, split-by, visualization, size and color palette.
Here is the edit mode version of the metric chart above:
Parameter | Explanation | Example |
---|---|---|
Resource Type |
The resource type to target | Storage or Virtual Machine. |
Resources |
A set of resources to get the metrics value from | MyStorage1 |
Namespace |
The namespace with the metric | Storage > Blob |
Metric |
The metric to visualize | Storage > Blob > Transactions |
Aggregation |
The aggregation function to apply to the metric | Sum, Count, Average, etc. |
Time Range |
The time window to view the metric in | Last hour, Last 24 hours, etc. |
Visualization |
The visualization to use | Area, Bar, Line, Scatter, Grid |
Split By |
Optionally split the metric on a dimension | Transactions by Geo type |
Size |
The vertical size of the control | Small, medium or large |
Color palette |
The color palette to use in the chart. Ignored if the Split by parameter is used |
Blue, green, red, etc. |