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/storage/file-sync/file-sync-monitoring.md
+43-42Lines changed: 43 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,23 @@
1
1
---
2
2
title: Monitor Azure File Sync
3
-
description: Review how to monitor your Azure File Sync deployment by using Azure Monitor, Storage Sync Service, and Windows Server.
3
+
description: Monitor Azure File Sync metrics, server health, and cloud tiering by using Azure Monitor, Storage Sync Service, and Windows Server.
4
4
author: khdownie
5
5
ms.service: azure-file-storage
6
6
ms.topic: how-to
7
-
ms.date: 10/09/2023
7
+
ms.date: 06/05/2024
8
8
ms.author: kendownie
9
9
---
10
10
11
-
# Monitor Azure File Sync
11
+
# Monitor Azure File Sync metrics and health
12
12
13
13
Use Azure File Sync to centralize your organization's file shares in Azure Files, while keeping the flexibility, performance, and compatibility of an on-premises file server. Azure File Sync transforms Windows Server into a quick cache of your Azure file share. You can use any protocol that's available on Windows Server to access your data locally, including SMB, NFS, and FTPS. You can have as many caches as you need across the world.
14
14
15
-
This article describes how to monitor your Azure File Sync deployment by using Azure Monitor, Storage Sync Service and Windows Server.
15
+
This article describes how to monitor your Azure File Sync deployment by using Azure Monitor, Storage Sync Service, and Windows Server. It covers the following scenarios:
16
16
17
-
The following scenarios are covered in this guide:
18
17
- View Azure File Sync metrics in Azure Monitor.
19
18
- Create alerts in Azure Monitor to proactively notify you of critical conditions.
20
19
- View health of your Azure File Sync deployment using the Azure portal.
21
-
-How to use the event logs and performance counters on your Windows Servers to monitor the health of your Azure File Sync deployment.
20
+
-Use the event logs and performance counters on Windows Server to monitor the health of your Azure File Sync deployment.
22
21
23
22
## Azure Monitor
24
23
@@ -70,7 +69,7 @@ Alerts proactively notify you when important conditions are found in your monito
70
69
5. Fill in the **Alert details** like **Alert rule name**, **Description** and **Severity**.
71
70
6. Click **Create alert rule** to create the alert.
72
71
73
-
> [!Note]
72
+
> [!NOTE]
74
73
> If you configure an alert using the Server Name dimension and the server is renamed, the alert will need to be updated to monitor the new server name.
75
74
76
75
The following table lists some example scenarios to monitor and the proper metric to use for the alert:
@@ -136,7 +135,7 @@ To view the health of a **server endpoint** in the portal, navigate to the **Syn
136
135
137
136
- To learn more, see [Azure Monitor](#azure-monitor).
138
137
139
-
> [!Note]
138
+
> [!NOTE]
140
139
> The charts in the Storage Sync Service portal have a time range of 24 hours. To view different time ranges or dimensions, use Azure Monitor.
141
140
142
141
## Windows Server
@@ -151,7 +150,7 @@ Use the Telemetry event log on the server to monitor registered server, sync, an
151
150
152
151
- Event ID 9102 is logged once a sync session completes. Use this event to determine if sync sessions are successful (**HResult = 0**) and if there are per-item sync errors (**PerItemErrorCount**). For more information, see the [sync health](/troubleshoot/azure/azure-storage/file-sync-troubleshoot-sync-errors?toc=/azure/storage/file-sync/toc.json#broken-sync) and [per-item errors](/troubleshoot/azure/azure-storage/file-sync-troubleshoot-sync-errors?toc=/azure/storage/file-sync/toc.json#how-do-i-see-if-there-are-specific-files-or-folders-that-are-not-syncing) documentation.
153
152
154
-
> [!Note]
153
+
> [!NOTE]
155
154
> Sometimes sync sessions fail overall or have a non-zero PerItemErrorCount. However, they still make forward progress, and some files sync successfully. You can see this in the Applied fields such as AppliedFileCount, AppliedDirCount, AppliedTombstoneCount, and AppliedSizeBytes. These fields tell you how much of the session succeeded. If you see multiple sync sessions fail in a row, and they have an increasing Applied count, give sync time to try again before you open a support ticket.
156
155
157
156
- Event ID 9121 is logged for each per-item error once the sync session completes. Use this event to determine the number of files that are failing to sync with this error (**PersistentCount** and **TransientCount**). Persistent per-item errors should be investigated, see [How do I see if there are specific files or folders that are not syncing?](/troubleshoot/azure/azure-storage/file-sync-troubleshoot-sync-errors?toc=/azure/storage/file-sync/toc.json#how-do-i-see-if-there-are-specific-files-or-folders-that-are-not-syncing).
@@ -196,18 +195,19 @@ The following performance counters for Azure File Sync are available in Performa
196
195
| AFS Sync Operations\Total Sync File Operations/sec | Total number of files synced (upload and download). |
197
196
198
197
## Alert Examples
198
+
199
199
This section provides some example alerts for Azure File Sync.
200
200
201
-
> [!Note]
201
+
> [!NOTE]
202
202
> If you create an alert and it's too noisy, adjust the threshold value and alert logic.
203
203
204
204
### How to create an alert if the server endpoint health shows an error in the portal
205
205
206
206
1. In the **Azure portal**, navigate to respective **Storage Sync Service**.
207
-
2. Go to the **Monitoring** section and click**Alerts**.
208
-
3.Click on**+ New alert rule** to create a new alert rule.
207
+
2. Go to the **Monitoring** section and select**Alerts**.
208
+
3.Select**+ New alert rule** to create a new alert rule.
209
209
4. Configure condition by clicking **Select condition**.
210
-
5. Within **Configure signal logic** blade, click**Sync session result** under signal name.
210
+
5. Within **Configure signal logic** blade, select**Sync session result** under signal name.
211
211
6. Select the following dimension configuration:
212
212
- Dimension name: **Server Endpoint Name**
213
213
- Operator: **=**
@@ -218,18 +218,18 @@ This section provides some example alerts for Azure File Sync.
218
218
- Aggregation type: **Maximum**
219
219
- Threshold value: **1**
220
220
- Evaluated based on: Aggregation granularity = **24 hours** | Frequency of evaluation = **Every hour**
221
-
-Click**Done.**
222
-
8.Click**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
223
-
9. Fill in the **Alert details** like **Alert rule name**, **Description** and **Severity**.
224
-
10.Click**Create alert rule**.
221
+
-Select**Done.**
222
+
8.Select**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
223
+
9. Fill in the **Alert details** like **Alert rule name**, **Description**, and **Severity**.
224
+
10.Select**Create alert rule**.
225
225
226
226
### How to create an alert if files are failing to sync to a server or cloud endpoint
227
227
228
228
1. In the **Azure portal**, navigate to respective **Storage Sync Service**.
229
-
2. Go to the **Monitoring** section and click**Alerts**.
230
-
3.Click on**+ New alert rule** to create a new alert rule.
231
-
4. Configure condition by clicking**Select condition**.
232
-
5. Within **Configure signal logic** blade, click**Files not syncing** under signal name.
229
+
2. Go to the **Monitoring** section and select**Alerts**.
230
+
3.Select**+ New alert rule** to create a new alert rule.
231
+
4. Configure condition by selecting**Select condition**.
232
+
5. Within **Configure signal logic** blade, select**Files not syncing** under signal name.
233
233
6. Select the following dimension configuration:
234
234
- Dimension name: **Server Endpoint Name**
235
235
- Operator: **=**
@@ -241,17 +241,17 @@ This section provides some example alerts for Azure File Sync.
241
241
- Threshold value: **100**
242
242
- Evaluated based on: Aggregation granularity = **5 minutes** | Frequency of evaluation = **Every 5 minutes**
243
243
- Click **Done.**
244
-
8.Click**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
245
-
9. Fill in the **Alert details** like **Alert rule name**, **Description** and **Severity**.
246
-
10.Click**Create alert rule**.
244
+
8.Select**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
245
+
9. Fill in the **Alert details** like **Alert rule name**, **Description**, and **Severity**.
246
+
10.Select**Create alert rule**.
247
247
248
248
### How to create an alert if a registered server is failing to communicate with the Storage Sync Service
249
249
250
250
1. In the **Azure portal**, navigate to respective **Storage Sync Service**.
251
-
2. Go to the **Monitoring** section and click**Alerts**.
252
-
3.Click on**+ New alert rule** to create a new alert rule.
253
-
4. Configure condition by clicking**Select condition**.
254
-
5. Within **Configure signal logic** blade, click**Server online status** under signal name.
251
+
2. Go to the **Monitoring** section and select**Alerts**.
252
+
3.Select**+ New alert rule** to create a new alert rule.
253
+
4. Configure condition by selecting**Select condition**.
254
+
5. Within **Configure signal logic** blade, select**Server online status** under signal name.
255
255
6. Select the following dimension configuration:
256
256
- Dimension name: **Server name**
257
257
- Operator: **=**
@@ -262,19 +262,19 @@ This section provides some example alerts for Azure File Sync.
262
262
- Aggregation type: **Maximum**
263
263
- Threshold value (in bytes): **1**
264
264
- Evaluated based on: Aggregation granularity = **1 hour** | Frequency of evaluation = **Every 30 minutes**
265
-
- Note that the metrics are sent to Azure Monitor every 15 to 20 minutes. Do not set the **Frequency of evaluation** to less than 30 minutes (will generate false alerts).
266
-
-Click**Done.**
267
-
8.Click**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
268
-
9. Fill in the **Alert details** like **Alert rule name**, **Description** and **Severity**.
269
-
10.Click**Create alert rule**.
265
+
- Note that the metrics are sent to Azure Monitor every 15 to 20 minutes. Don't set the **Frequency of evaluation** to less than 30 minutes, as doing so will generate false alerts.
266
+
-Select**Done.**
267
+
8.Select**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
268
+
9. Fill in the **Alert details** like **Alert rule name**, **Description**, and **Severity**.
269
+
10.Select**Create alert rule**.
270
270
271
-
### How to create an alert if the cloud tiering recall size has exceeded 500GiB in a day
271
+
### How to create an alert if the cloud tiering recall size has exceeded 500 GiB in a day
272
272
273
273
1. In the **Azure portal**, navigate to respective **Storage Sync Service**.
274
-
2. Go to the **Monitoring** section and click**Alerts**.
275
-
3.Click on**+ New alert rule** to create a new alert rule.
276
-
4. Configure condition by clicking**Select condition**.
277
-
5. Within **Configure signal logic** blade, click**Cloud tiering recall size** under signal name.
274
+
2. Go to the **Monitoring** section and select**Alerts**.
275
+
3.Select**+ New alert rule** to create a new alert rule.
276
+
4. Configure condition by selecting**Select condition**.
277
+
5. Within **Configure signal logic** blade, select**Cloud tiering recall size** under signal name.
278
278
6. Select the following dimension configuration:
279
279
- Dimension name: **Server name**
280
280
- Operator: **=**
@@ -285,12 +285,13 @@ This section provides some example alerts for Azure File Sync.
285
285
- Aggregation type: **Total**
286
286
- Threshold value (in bytes): **67108864000**
287
287
- Evaluated based on: Aggregation granularity = **24 hours** | Frequency of evaluation = **Every hour**
288
-
-Click**Done.**
289
-
8.Click**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
290
-
9. Fill in the **Alert details** like **Alert rule name**, **Description** and **Severity**.
291
-
10.Click**Create alert rule**.
288
+
-Select**Done.**
289
+
8.Select**Select action group** to add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
290
+
9. Fill in the **Alert details** like **Alert rule name**, **Description**, and **Severity**.
291
+
10.Select**Create alert rule**.
292
292
293
293
## Next steps
294
+
294
295
-[Planning for an Azure File Sync deployment](file-sync-planning.md)
295
296
-[Consider firewall and proxy settings](file-sync-firewall-and-proxy.md)
0 commit comments