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/files/storage-files-monitoring.md
+30-60Lines changed: 30 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -374,6 +374,11 @@ For more information on how to write queries, see [Log Analytics tutorial](../..
374
374
375
375
Azure Monitor alerts proactively notify you when important conditions are found in your monitoring data. They allow you to identify and address issues in your system before your customers notice them. You can set alerts on [metrics](../../azure-monitor/alerts/alerts-metric-overview.md), [logs](../../azure-monitor/alerts/alerts-unified-log.md), and the [activity log](../../azure-monitor/alerts/activity-log-alerts.md).
376
376
377
+
To learn more about how to create an alert, see [Create or edit an alert rule](../../azure-monitor/alerts/alerts-create-new-alert-rule).
378
+
379
+
> [!NOTE]
380
+
> If you create an alert and it's too noisy, adjust the threshold value and alert logic.
381
+
377
382
The following table lists some example scenarios to monitor and the proper metric to use for the alert:
378
383
379
384
| Scenario | Metric to use for alert |
@@ -382,38 +387,11 @@ The following table lists some example scenarios to monitor and the proper metri
382
387
| File share size is 80% of capacity. | Metric: File Capacity<br>Dimension name: FileShare (premium file share only) |
383
388
| File share egress has exceeded 500 GiB in one day. | Metric: Egress<br>Dimension name: FileShare (premium file share only) |
384
389
385
-
### How to create alerts for Azure Files
386
-
387
-
1. Go to your **storage account** in the **Azure portal**.
388
-
389
-
2. Click **Alerts** and then click **+ New alert rule**.
390
-
391
-
3. Click **Edit resource**, select the **File resource type** and then click **Done**.
392
-
393
-
4. Click **Add condition** and provide the following information for the alert:
394
-
395
-
- **Metric**
396
-
- **Dimension name**
397
-
- **Alert logic**
398
-
399
-
5. Click **Add action groups** and add an action group (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
400
-
401
-
6. Fill in the **Alert details** like **Alert rule name**, **Description**, and **Severity**.
402
-
403
-
7. Click **Create alert rule** to create the alert.
404
-
405
-
> [!NOTE]
406
-
> If you create an alert and it's too noisy, adjust the threshold value and alert logic.
407
-
408
390
### How to create an alert if a file share is throttled
409
391
410
-
1. Go to your **storage account** in the **Azure portal**.
411
-
2. In the **Monitoring** section, click **Alerts**, and then click **+ New alert rule**.
412
-
3. Click **Edit resource**, select the **File resource type** for the storage account and then click **Done**. For example, if the storage account name is `contoso`, select the `contoso/file` resource.
413
-
4. Click **Add condition** to add a condition.
414
-
5. You'll see a list of signals supported for the storage account, select the **Transactions** metric.
415
-
6. On the **Configure signal logic** blade, click the **Dimension name** drop-down and select **Response type**.
416
-
7. Click the **Dimension values** drop-down and select the appropriate response types for your file share.
392
+
1. In the **Condition** tab of the **Create an alert rule** dialog box, select the **Transactions** metric.
393
+
2. In the **Dimension name** drop-down list of the **Split by dimensions** section, select **Response type**.
394
+
3. Select the **Dimension values** drop-down list and select the appropriate response types for your file share.
417
395
418
396
For standard file shares, select the following response types:
419
397
@@ -433,59 +411,51 @@ The following table lists some example scenarios to monitor and the proper metri
433
411
> [!NOTE]
434
412
> If the response types are not listed in the **Dimension values** drop-down, this means the resource has not been throttled. To add the dimension values, next to the **Dimension values** drop-down list, select **Add custom value**, enter the respone type (for example, **SuccessWithThrottling**), select **OK**, and then repeat these steps to add all applicable response types for your file share.
435
413
436
-
8. For **premium file shares**, click the **Dimension name** drop-down and select **File Share**. For **standard file shares**, skip to **step #10**.
414
+
4. For **premium file shares**, select the **Dimension name** drop-down and select **File Share**. For **standard file shares**, skip to step 6.
437
415
438
416
> [!NOTE]
439
417
> If the file share is a standard file share, the **File Share** dimension will not list the file share(s) because per-share metrics are not available for standard file shares. Throttling alerts for standard file shares will be triggered if any file share within the storage account is throttled and the alert will not identify which file share was throttled. Since per-share metrics are not available for standard file shares, the recommendation is to have one file share per storage account.
440
418
441
-
9. Click the **Dimension values** drop-down and select the file share(s) that you want to alert on.
442
-
10. Define the **alert parameters** (threshold value, operator, aggregation granularity and frequency of evaluation) and click **Done**.
419
+
5. Click the **Dimension values** drop-down and select the file share(s) that you want to alert on.
420
+
421
+
6. Define the alert parameters (threshold value, operator, lookback period, and frequency of evaluation).
443
422
444
423
> [!TIP]
445
424
> If you are using a static threshold, the metric chart can help determine a reasonable threshold value if the file share is currently being throttled. If you're using a dynamic threshold, the metric chart will display the calculated thresholds based on recent data.
446
425
447
-
11. Click **Add action groups** to add an **action group** (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
448
-
12. Fill in the **Alert details**like **Alert rule name**, **Description**, and **Severity**.
449
-
13. Click**Create alert rule** to create the alert.
426
+
7. Select the **Actions**tab to add an action group (email, SMS, etc.) to the alert. You can select an existing action group or create a new action group.
427
+
8. Select the **Details**tab to fill in the details of the alert such as the alert name, description, and severity.
428
+
9. Select**Review + create** to create the alert.
450
429
451
430
### How to create an alert if the Azure file share size is 80% of capacity
452
431
453
-
1. Go to your **storage account** in the **Azure portal**.
454
-
2. In the **Monitoring** section, click **Alerts** and then click **+ New alert rule**.
455
-
3. Click **Edit resource**, select the **File resource type** for the storage account and then click **Done**. For example, if the storage account name is `contoso`, select the `contoso/file` resource.
456
-
4. Click **Add condition** to add a condition.
457
-
5. You'll see a list of signals supported for the storage account, select the **File Capacity** metric.
458
-
6. For **premium file shares**, click the **Dimension name** drop-down and select **File Share**. For **standard file shares**, skip to **step #8**.
432
+
1. In the **Condition** tab of the **Create an alert rule** dialog box, select the **File Capacity** metric.
433
+
2. For **premium file shares**, select the **Dimension name** drop-down list, and then select **File Share**. For **standard file shares**, skip to step 4.
459
434
460
435
> [!NOTE]
461
436
> If the file share is a standard file share, the **File Share** dimension will not list the file share(s) because per-share metrics are not available for standard file shares. Alerts for standard file shares are based on all file shares in the storage account. Since per-share metrics are not available for standard file shares, the recommendation is to have one file share per storage account.
462
437
463
-
7. Click the **Dimension values** drop-down and select the file share(s) that you want to alert on.
464
-
8. Enter the **Threshold value** in bytes. For example, if the file share size is 100 TiB and you want to receive an alert when the file share size is 80% of capacity, the threshold value in bytes is 87960930222080.
465
-
9. Define the rest of the **alert parameters** (aggregation granularity and frequency of evaluation) and click **Done**.
466
-
10. Click **Add action groups** to add an **action group** (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
467
-
11. Fill in the **Alert details**like **Alert rule name**, **Description**, and **Severity**.
468
-
12. Click**Create alert rule** to create the alert.
438
+
3. Select the **Dimension values** drop-down and select the file share(s) that you want to alert on.
439
+
4. Enter the **Threshold value** in bytes. For example, if the file share size is 100 TiB and you want to receive an alert when the file share size is 80% of capacity, the threshold value in bytes is 87960930222080.
440
+
5. Define the alert parameters (threshold value, operator, lookback period, and frequency of evaluation).
441
+
6. Select the **Actions**tab to add an action group (email, SMS, etc.) to the alert. You can select an existing action group or create a new action group.
442
+
7. Select the **Details**tab to fill in the details of the alert such as the alert name, description, and severity.
443
+
8. Select**Review + create** to create the alert.
469
444
470
445
### How to create an alert if the Azure file share egress has exceeded 500 GiB in a day
471
446
472
-
1. Go to your **storage account** in the **Azure portal**.
473
-
2. In the Monitoring section, click **Alerts** and then click **+ New alert rule**.
474
-
3. Click **Edit resource**, select the **File resource type** for the storage account and then click **Done**. For example, if the storage account name is contoso, select the contoso/file resource.
475
-
4. Click **Add condition** to add a condition.
476
-
5. You'll see a list of signals supported for the storage account, select the **Egress** metric.
477
-
6. For **premium file shares**, click the **Dimension name** drop-down and select **File Share**. For **standard file shares**, skip to **step #8**.
447
+
1. In the **Condition** tab of the **Create an alert rule** dialog box, select the **Egress** metric.
448
+
2. For **premium file shares**, select the **Dimension name** drop-down list and select **File Share**. For **standard file shares**, skip to step 4.
478
449
479
450
> [!NOTE]
480
451
> If the file share is a standard file share, the **File Share** dimension will not list the file share(s) because per-share metrics are not available for standard file shares. Alerts for standard file shares are based on all file shares in the storage account. Since per-share metrics are not available for standard file shares, the recommendation is to have one file share per storage account.
481
452
482
-
7.Click the **Dimension values** drop-down and select the file share(s) that you want to alert on.
453
+
7.Select the **Dimension values** drop-down and select the file share(s) that you want to alert on.
483
454
8. Enter **536870912000** bytes for Threshold value.
484
-
9. Click the **Aggregation granularity** drop-down and select **24 hours**.
485
-
10. Select the **Frequency of evaluation** and **click Done**.
486
-
11. Click **Add action groups** to add an **action group** (email, SMS, etc.) to the alert either by selecting an existing action group or creating a new action group.
487
-
12. Fill in the **Alert details** like **Alert rule name**, **Description**, and **Severity**.
488
-
13. Click **Create alert rule** to create the alert.
455
+
9. From the **Check every** drop-down list, select the frequency of evaluation.
456
+
6. Select the **Actions** tab to add an action group (email, SMS, etc.) to the alert. You can select an existing action group or create a new action group.
457
+
7. Select the **Details** tab to fill in the details of the alert such as the alert name, description, and severity.
458
+
8. Select **Review + create** to create the alert.
0 commit comments