You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/visualize/workbooks-create-workbook.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,52 @@ To add a query to an Azure Workbook:
125
125
```
126
126
127
127
In this case, the query returns no rows if the **AzureDiagnostics** table is missing, or if the **ResourceId** column is missing from the table.
128
+
129
+
### Tutorial - resource centric logs queries in workbooks
130
+
131
+
This video shows you how to use resource level logs queries in Azure Workbooks. It also has tips and tricks on how to enable advanced scenarios and improve performance.
132
+
133
+
[](https://youtu.be/8CvjM0VvOA8 "Video showing how to make resource centric log queries in workbooks")
134
+
135
+
#### Dynamic resource type parameter
136
+
Uses dynamic scopes for more efficient querying. The snippet below uses this heuristc:
137
+
1. _Individual resources_: if the count of selected resource is less than or equal to 5
138
+
2. _Resource groups_: if the number of resources is over 5 but the number of resource groups the resources belong to is less than or equal to 3
139
+
3. _Subscriptions_: otherwise
140
+
141
+
```
142
+
Resources
143
+
| take 1
144
+
| project x = dynamic(["microsoft.compute/virtualmachines", "microsoft.compute/virtualmachinescalesets", "microsoft.resources/resourcegroups", "microsoft.resources/subscriptions"])
You can collect input from consumers and reference it in other parts of the workbook using parameters. Use parameters to scope the result set or to set the right visual. Parameters help you build interactive reports and experiences. For more information on how parameters can be used, see [workbook parameters](workbooks-parameters.md).
Copy file name to clipboardExpand all lines: articles/azure-monitor/visualize/workbooks-data-sources.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,12 @@ You can use Kusto query language (KQL) queries that transform the underlying res
39
39
40
40
You can easily query across multiple resources to create a unified rich reporting experience.
41
41
42
+
See also: [Log Analytics query optimization tips](../logs/query-optimization.md)
43
+
44
+
See also: [Workbooks best practices and hints for logs queries](workbooks-create-workbook.md#best-practices-for-querying-logs)
45
+
46
+
Tutorial: [Making resource centric log queries in workbooks](workbooks-create-workbook.md#tutorial---resource-centric-logs-queries-in-workbooks)
47
+
42
48
## Metrics
43
49
44
50
Azure resources emit [metrics](../essentials/data-platform-metrics.md) that can be accessed via workbooks. Metrics can be accessed in workbooks through a specialized control that allows you to specify the target resources, the desired metrics, and their aggregation. You can then plot this data in charts or grids.
@@ -71,6 +77,8 @@ For the **Cluster Name** field, add the region name following the cluster name.
71
77
72
78

73
79
80
+
See also: [Azure Data Explorer query best practices](/azure/data-explorer/kusto/query/best-practices)
81
+
74
82
## JSON
75
83
76
84
The JSON provider allows you to create a query result from static JSON content. It's most commonly used in parameters to create dropdown parameters of static values. Simple JSON arrays or objects will automatically be converted into grid rows and columns. For more specific behaviors, you can use the **Results** tab and JSONPath settings to configure columns.
@@ -112,6 +120,10 @@ Workbooks support these merges:
112
120
* Union
113
121
* Duplicate table
114
122
123
+
### Merge examples
124
+
125
+
[Using the Duplicate Table option to reuse queried data](workbooks-commonly-used-components.md#reuse-query-data-in-different-visualizations)
126
+
115
127
## Custom endpoint
116
128
117
129
Workbooks support getting data from any external source. If your data lives outside Azure, you can bring it to workbooks by using this data source type.
0 commit comments