Skip to content

Commit 59d0d5c

Browse files
committed
edit
1 parent a4299b7 commit 59d0d5c

File tree

3 files changed

+55
-40
lines changed

3 files changed

+55
-40
lines changed

articles/storage/files/analyze-files-metrics.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ Metrics for Azure Files are in these namespaces:
3030
- Microsoft.Storage/storageAccounts
3131
- Microsoft.Storage/storageAccounts/fileServices
3232

33-
For a list of available metrics for Azure Files, see [Azure Files monitoring data reference](storage-files-monitoring-reference.md).
33+
For a list of available metrics for Azure Files, see [Azure Files monitoring data reference](storage-files-monitoring-reference.md#supported-metrics-for-microsoftstoragestorageaccountsfileservices).
3434

35-
For a list of all Azure Monitor support metrics, which includes Azure Files, see [Azure Monitor supported metrics](/azure/azure-monitor/essentials/metrics-supported#microsoftstoragestorageaccountsfileservices).
35+
For a list of all Azure Monitor supported metrics, which includes Azure Files, see [Azure Monitor supported metrics](/azure/azure-monitor/reference/supported-metrics/metrics-index#supported-metrics-per-resource-type).
36+
37+
## View Azure Files metrics data
38+
39+
You can analyze Azure Files metrics by using the Azure portal, PowerShell, Azure CLI, or .NET.
3640

3741
### [Azure portal](#tab/azure-portal)
3842

39-
You can analyze metrics for Azure Storage with metrics from other Azure services by using Metrics Explorer. Open Metrics Explorer by choosing **Metrics** from the **Azure Monitor** menu. For details on using this tool, see [Analyze metrics with Azure Monitor metrics explorer](/azure/azure-monitor/essentials/analyze-metrics).
43+
You can analyze metrics for Azure Storage with metrics from other Azure services by using Azure Monitor Metrics Explorer. Open metrics explorer by choosing **Metrics** from the **Azure Monitor** menu. For details on using this tool, see [Analyze metrics with Azure Monitor metrics explorer](/azure/azure-monitor/essentials/analyze-metrics).
4044

4145
For metrics that support dimensions, you can filter the metric with the desired dimension value. For a complete list of the dimensions that Azure Storage supports, see [Metrics dimensions](storage-files-monitoring-reference.md#metrics-dimensions).
4246

articles/storage/files/storage-files-monitoring-reference.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The following table lists the metrics available for the Microsoft.Storage/storag
5454
[!INCLUDE [Microsoft.Storage/storageAccounts](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-storage-storageaccounts-metrics-include.md)]
5555

5656
### Supported metrics for Microsoft.Storage/storageAccounts/fileServices
57-
The following table lists the metrics available for the Microsoft.Storage/storageAccounts/blobServices resource type.
57+
The following table lists the metrics available for the Microsoft.Storage/storageAccounts/fileServices resource type.
5858
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
5959
[!INCLUDE [Microsoft.Storage/storageAccounts/blobServices](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-storage-storageaccounts-fileservices-metrics-include.md)]
6060

@@ -82,6 +82,20 @@ The following table lists the metrics available for the Microsoft.Storage/storag
8282
- [AzureMetrics](/azure/azure-monitor/reference/tables/azuremetrics)
8383
- [StorageFileLogs](/azure/azure-monitor/reference/tables/storagefilelogs)
8484

85+
The following tables list the properties for Azure Storage resource logs when they're collected in Azure Monitor Logs or Azure Storage. The properties describe the operation, the service, and the type of authorization that was used to perform the operation.
86+
87+
### Fields that describe the operation
88+
89+
[!INCLUDE [Account level capacity metrics](../../../includes/azure-storage-logs-properties-operation.md)]
90+
91+
### Fields that describe how the operation was authenticated
92+
93+
[!INCLUDE [Account level capacity metrics](../../../includes/azure-storage-logs-properties-authentication.md)]
94+
95+
### Fields that describe the service
96+
97+
[!INCLUDE [Account level capacity metrics](../../../includes/azure-storage-logs-properties-service.md)]
98+
8599
<!-- ## Activity log. Required section. -->
86100
[!INCLUDE [horz-monitor-ref-activity-log](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-activity-log.md)]
87101
- [Microsoft.Storage resource provider operations](/azure/role-based-access-control/resource-provider-operations#microsoftstorage)

articles/storage/files/storage-files-monitoring.md

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ Metrics for Azure Files are in these namespaces:
140140

141141
For a list of available metrics for Azure Files, see [Azure Files monitoring data reference](storage-files-monitoring-reference.md).
142142

143-
For a list of all Azure Monitor support metrics, which includes Azure Files, see [Azure Monitor supported metrics](/azure/azure-monitor/essentials/metrics-supported#microsoftstoragestorageaccountsfileservices).
143+
For a list of all Azure Monitor supported metrics, which includes Azure Files, see [Azure Monitor supported metrics](/azure/azure-monitor/essentials/metrics-supported#microsoftstoragestorageaccountsfileservices).
144144

145-
For detailed instructions on how to analyze Azure Files metrics such as availability, latency, and utilization, see [Analyze Azure Files metrics using Azure Monitor](analyze-files-metrics.md).
145+
For detailed instructions on how to access and analyze Azure Files metrics such as availability, latency, and utilization, see [Analyze Azure Files metrics using Azure Monitor](analyze-files-metrics.md).
146146

147147
<a name="analyzing-logs"></a>
148148
### Analyze logs for Azure Files
149149

150-
You can access resource logs either as a blob in a storage account, as event data, or through Log Analytics queries. For information about how to find those logs, see [Azure resource logs](/azure/azure-monitor/essentials/resource-logs).
150+
You can access resource logs either as a blob in a storage account, as event data, or through Log Analytics queries. For information about how to send resource logs to different destinations, see [Azure resource logs](/azure/azure-monitor/essentials/resource-logs).
151151

152152
To get the list of SMB and REST operations that are logged, see [Storage logged operations and status messages](/rest/api/storageservices/storage-analytics-logged-operations-and-status-messages) and [Azure Files monitoring data reference](storage-files-monitoring-reference.md).
153153

@@ -169,47 +169,44 @@ Requests made by the Azure Files service itself, such as log creation or deletio
169169
<!-- Add sample Kusto queries for your service here. -->
170170
Here are some queries that you can enter in the **Log search** bar to help you monitor your Azure file shares. These queries work with the [new language](../../azure-monitor/logs/log-query-overview.md).
171171

172-
- View SMB errors over the last week
172+
- View SMB errors over the last week.
173173

174-
```Kusto
175-
StorageFileLogs
176-
| where Protocol == "SMB" and TimeGenerated >= ago(7d) and StatusCode contains "-"
177-
| sort by StatusCode
178-
```
179-
- Create a pie chart of SMB operations over the last week
174+
```Kusto
175+
StorageFileLogs
176+
| where Protocol == "SMB" and TimeGenerated >= ago(7d) and StatusCode contains "-"
177+
| sort by StatusCode
178+
```
179+
- Create a pie chart of SMB operations over the last week.
180180

181-
```Kusto
182-
StorageFileLogs
183-
| where Protocol == "SMB" and TimeGenerated >= ago(7d)
184-
| summarize count() by OperationName
185-
| sort by count_ desc
186-
| render piechart
187-
```
181+
```Kusto
182+
StorageFileLogs
183+
| where Protocol == "SMB" and TimeGenerated >= ago(7d)
184+
| summarize count() by OperationName
185+
| sort by count_ desc
186+
| render piechart
187+
```
188188

189-
- View REST errors over the last week
189+
- View REST errors over the last week.
190190

191-
```Kusto
192-
StorageFileLogs
193-
| where Protocol == "HTTPS" and TimeGenerated >= ago(7d) and StatusText !contains "Success"
194-
| sort by StatusText asc
195-
```
191+
```Kusto
192+
StorageFileLogs
193+
| where Protocol == "HTTPS" and TimeGenerated >= ago(7d) and StatusText !contains "Success"
194+
| sort by StatusText asc
195+
```
196196

197-
- Create a pie chart of REST operations over the last week
197+
- Create a pie chart of REST operations over the last week.
198198

199-
```Kusto
200-
StorageFileLogs
201-
| where Protocol == "HTTPS" and TimeGenerated >= ago(7d)
202-
| summarize count() by OperationName
203-
| sort by count_ desc
204-
| render piechart
205-
```
199+
```Kusto
200+
StorageFileLogs
201+
| where Protocol == "HTTPS" and TimeGenerated >= ago(7d)
202+
| summarize count() by OperationName
203+
| sort by count_ desc
204+
| render piechart
205+
```
206206

207-
To view the list of column names and descriptions for Azure Files, see [StorageFileLogs](/azure/azure-monitor/reference/tables/storagefilelogs).
207+
To view the list of column names and descriptions for Azure Files, see [StorageFileLogs](/azure/azure-monitor/reference/tables/storagefilelogs#columns).
208208

209-
For more information on how to write queries, see [Log Analytics tutorial](../../azure-monitor/logs/log-analytics-tutorial.md).
210-
211-
<!-- ### Azure Files service-specific analytics. Optional section.
212-
Add short information or links to specific articles that outline how to analyze data for your service. -->
209+
For more information on how to write queries, see [Log Analytics tutorial](/azure/azure-monitor/logs/log-analytics-tutorial).
213210

214211
<!-- ANALYSIS SECTION END ------------------------------------->
215212

0 commit comments

Comments
 (0)