Note
This documentation for Azure workbooks is now located at: https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-map-visualizations Please do not edit this file. All up-to-date information is in the new location and documentation should only be updated there.
Map allows visualizing region specific data, hence aiding in pin-pointing issues with specific regions. This also aids in high level aggregated view of the monitoring data by providing capability to aggregate all the data mapped to each location/country/region.
The image below shows the total transactions and E2E latency for different storage accounts. Here size is determined by the total number of transactions, and the color and metrics below the map shows the E2E latency. Upon the first observation, the number of transactions in the West US region are small compared to the East US region, but E2E latency for West US regions way higher than the East US region. This provides initial insight that something is amiss for West US.
Map can be visualized if the underlying data/metrics has Latitude/Longitude information, Azure resource information, Azure location information, or Country/Region name or Country/Region code.
- Switch the workbook to edit mode by clicking on the Edit toolbar item.
- Use the Add query link to add a Azure Resource Graph query control to the workbook.
- Select the query type as Azure Resource Graph and then pick any/multiple Subscription which have storage accounts.
- Use the Query editor to enter the KQL for your analysis and click on Run Query
where type =~ 'microsoft.storage/storageaccounts' | summarize count() by location
- Set size values to
Large
- Set the visualization to Map
- All the settings will be auto-populated. For custom settings, click on Map Settings button to open the settings pane.
- Below is the map visualization which shows storage accounts for each Azure region for the selected subscriptions.
- 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.
- Use a subscription which has Storage accounts.
- Select Resource Type as Storage account and in Resource(s) select multiple storage accounts.
- Add Transactions metric(Image below) and Success E2E Latency metric(Image below).
- Set size values to
Large
- Set the visualization to Map
- Map Settings pane will be automatically opened.
- Set the following settings (Some of the values will be auto-populated):
- Location Info using:
Azure Resource
- Azure resource field:
Name
- Size by:
microsoft.storage/storageaccounts-Transaction-Transactions
- Aggregation for location:
Sum of values
- Coloring Type:
Heatmap
- Color by:
microsoft.storage/storageaccounts-Transaction-SuccessE2ELatency
- Aggregation for color:
Sum of values
- Color palette:
Green to Red
- Minimum value:
0
- Metric Value:
microsoft.storage/storageaccounts-Transaction-SuccessE2ELatency
- Aggregate other metrics by:
Sum of values
- Select the custom formatting checkbox
- Unit:
Milliseconds
- Style:
Decimal
- Maximum fractional digits:
2
- Location Info using:
- Switch the workbook to edit mode by clicking on the Edit toolbar item.
- Use the Add query link to add a log query control to the workbook.
- Select the query type as Log, resource type as Application Insights and then pick any Application Insights resource which has pageViews data.
- Use the Query editor to enter the KQL for your analysis and click on Run Query
pageViews | project duration, itemCount, client_CountryOrRegion | limit 20
- Set size values to
Large
- Set the visualization to Map
- All the settings will be auto-populated. For custom settings, click on Map Settings button to open the settings pane.
- Switch the workbook to edit mode by clicking on the Edit toolbar item.
- Use the Add query link to add a JSON query control to the workbook.
- Select the query type as JSON and paste the below JSON data in the query editor and click on Run Query button.
[
{
"users": 23,
"displayName": "East Asia",
"latitude": "22.267",
"longitude": "114.188"
},
{
"users": 85,
"displayName": "Southeast Asia",
"latitude": "1.283",
"longitude": "103.833"
},
{
"users": 60,
"displayName": "Central US",
"latitude": "41.5908",
"longitude": "-93.6208"
},
{
"users": 9,
"displayName": "East US",
"latitude": "37.3719",
"longitude": "-79.8164"
},
{
"users": 89,
"displayName": "East US 2",
"latitude": "36.6681",
"longitude": "-78.3889"
}
]
- Set size values to
Large
- Set the visualization to Map
- Map Settings pane will be automatically opened.
- Set the
Metric Label
in Metric Settings to displayName and click onSave and Close
- Below is the map visualization which shows users for each latitude and longitude location with the selected label for the metrics.
Setting | Explanation |
---|---|
Location Info Using |
Select a way to get location of items shown on the map.
|
Latitude/Longitude |
These two option will be visible if Location Info field value is: Latitude/Longitude. Select the column which has latitude in the latitude field and longitude in the longitude field respectively. |
Azure location field |
This option will be visible if Location Info field value is: Azure location. Select the column which the Azure location information. |
Azure resource field |
This option will be visible if Location Info field value is: Azure resource. Select the column which the Azure resource information. |
Country/Region field |
This option will be visible if Location Info field value is: Country or region. Select the column which the Country/Region information. |
Size by |
This option controls the size of the items shown on the map. Size depends on value in the column specified by the user. Currently, radius of the circle is directly proportional to the square root of the column's value. If 'None...' is selected, all the circles will show the default region size. |
Aggregation for location |
This field specifies how to aggregate the size by column's which has same Azure Location/Azure Resource/Country-Region. |
Minimum region size |
This field specifies what is the minimum radius of the item shown on the map. This is used when there is a big difference between the size by column's values, therefore smaller items are hardly visible on the map. |
Maximum region size |
This field specifies what is the maximum radius of the item shown on the map. This is used when the size by column's values are extremely large and they are covering huge area of the map. |
Default region size |
This field specifies what is the default radius of the item shown on the map. The default radius is used when the Size By column is 'None...' or the value is 0. |
Minimum value |
The minimum value used to compute region size. If not specified, the minimum value will be the smallest value after aggregation. |
Maximum value |
The maximum value used to compute region size. If not specified, the maximum value will be the largest value after aggregation. |
Opacity of items on Map |
This field specifies how transparent are the items shown on the map. Opacity of 1 means, no transparency, where opacity of 0 means, items won't be visible on the map. If there are too many items on the map, opacity can be set to low value so that all the overlapping items are visible. |
Coloring Type | Explanation |
---|---|
None |
All nodes have the same color |
Thresholds |
In this type, cell colors are set by threshold rules (e.g. CPU > 90% => Red, 60% > CPU > 90% => Yellow, CPU < 60% => Green). The value property in Thresholds can refer to columns and parameters. Refer to columns with ["columnName"] . Refer to parameters with {paramName} . Both column name and parameter name are case sensitive.
|
Heatmap |
In this type, the cells are colored based on the color palette and Color by field. This will also have same Color by and Aggregation for color options as in the case of thresholds. |
Setting | Explanation |
---|---|
Metric Label |
This option will be visible if Location Info field value is: Latitude/Longitude. Using this feature, user can pick the label to show for metrics shown below the map. |
Metric Value |
This field specifies metric value to be shown below the map. |
Create 'Others' group after |
This field specifies the limit before an "Others" group is created. |
Aggregate 'Others' metrics by |
This field specifies the aggregation used for "Others" group if it is shown. |
Custom formatting |
This is same as grid's custom formatting. More description here. |