Skip to content

Commit 13e9203

Browse files
committed
Getting this in for Ozge
1 parent eee8a05 commit 13e9203

File tree

3 files changed

+78
-4
lines changed

3 files changed

+78
-4
lines changed

articles/storage/blobs/monitor-blob-storage-reference.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Monitoring data reference for Azure Blob Storage
33
description: This article contains important reference material you need when you monitor Azure Blob Storage.
4-
ms.date: 11/05/2024
4+
ms.date: 02/27/2025
55
ms.custom: horz-monitor
66
ms.topic: reference
77
author: normesta
@@ -23,6 +23,13 @@ The following table lists the metrics available for the Microsoft.Storage/storag
2323
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
2424
[!INCLUDE [Microsoft.Storage/storageAccounts](~/reusable-content/ce-skilling/azure/includes/azure-monitor/reference/metrics/microsoft-storage-storageaccounts-metrics-include.md)]
2525

26+
### Category: Object replication
27+
28+
| **Metric** | **Name in REST API** | **Unit** | **Aggregation** | **Dimensions** | **Time Grains** | **DS Export** |
29+
|---|---|---|---|---|---|---|
30+
| **Pending Bytes for Replication (preview)**<br><br>The size in bytes of the blob object pending for replication. | PendingBytesForReplication | Bytes | Average<br>Minimum, Maximum | TimeBucket, AccountName, and PolicyId | PT2M | No |
31+
| **Pending Operations for Replication (preview)**<br><br>The count of pending operations for replication. | PendingOperationsForReplication | Count | Average<br>Minimum, Maximum | TimeBucket, AccountName, and PolicyId | PT2M | No |
32+
2633
### Supported metrics for Microsoft.Storage/storageAccounts/blobServices
2734
The following table lists the metrics available for the Microsoft.Storage/storageAccounts/blobServices resource type.
2835
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]

articles/storage/blobs/object-replication-configure.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: normesta
77

88
ms.service: azure-blob-storage
99
ms.topic: how-to
10-
ms.date: 05/05/2022
10+
ms.date: 02/27/2025
1111
ms.author: normesta
1212
ms.custom: devx-track-azurecli, devx-track-azurepowershell
1313
---
@@ -307,6 +307,48 @@ az storage account or-policy create \
307307

308308
---
309309

310+
## Configure replication metrics
311+
312+
### Enable replication metrics
313+
You can enable replication metrics on both new and existing object replication policies. It might take a few minutes to start observing the metrics.
314+
315+
# [Azure Portal](#tab/azure-portal)
316+
You can enable metrics using **Object Replication** blade from the new _Metrics_ column or by editing the _Edit Rules_ section of a policy from "…" on the OR policy row.
317+
318+
# [PowerShell](#tab/powershell)
319+
Not yet supported.
320+
321+
# [Azure CLI](#tab/azure-cli)
322+
Not yet supported.
323+
324+
# [REST API](#tab/rest-api)
325+
Enabling metrics is supported on API version 2021-08-01 and above. You can add the new metrics field to the replication policy. Sample:
326+
``` json
327+
{
328+
"sourceAccount": "<source-account-name>",
329+
"destinationAccount": "<destination-account-name>",
330+
"metrics":
331+
{
332+
"enabled": true
333+
},
334+
"rules":
335+
[
336+
{
337+
"ruleId": "<rule-id>",
338+
"sourceContainer": "<source-container-name>",
339+
"destinationContainer": "<destination-container-name>"
340+
}
341+
]
342+
}
343+
```
344+
---
345+
If you enable metrics on a policy that is configured to copy over existing data, you might observe an increasing amount at the beginning while the policy works on initial phase of listing. Once this is completed, the replication will start.
346+
### View replication metrics
347+
348+
You can click the **View** link from Metrics column to view monitoring metrics
349+
350+
To further view metrics in Azure Monitor, click on chart of a metric. This will direct you to Azure Monitor Metrics view with more filtering capabilities.
351+
310352
## Check the replication status of a blob
311353

312354
You can check the replication status for a blob in the source account using the Azure portal, PowerShell, or Azure CLI. Object replication properties aren't populated until replication has either completed or failed.

articles/storage/blobs/object-replication-overview.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ author: normesta
66

77
ms.service: azure-blob-storage
88
ms.topic: conceptual
9-
ms.date: 12/08/2023
10-
ms.author: nachakra
9+
ms.date: 02/27/2025
10+
ms.author: normesta
1111
ms.custom: engagement-fy23
1212
---
1313

@@ -191,6 +191,31 @@ By default, the **AllowCrossTenantReplication** property is set to false for a s
191191

192192
You can use Azure Policy to audit a set of storage accounts to ensure that the **AllowCrossTenantReplication** property is set to prevent cross-tenant object replication. You can also use Azure Policy to enforce governance for a set of storage accounts. For example, you can create a policy with the deny effect to prevent a user from creating a storage account where the **AllowCrossTenantReplication** property is set to *true*, or from modifying an existing storage account to change the property value to *true*.
193193

194+
## Replication metrics
195+
> [!IMPORTANT]
196+
> Object replication metrics is currently in PREVIEW and available in all regions.
197+
> To opt in to the preview, see [Set up preview features in Azure subscription](/azure/azure-resource-manager/management/preview-features.md) and specify AllowObjectReplicationMetrics as the feature name. The provider name for this preview feature is Microsoft.Storage.
198+
>
199+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
200+
201+
Object replication supports two metrics to provide you with insights into the replication progress:
202+
203+
- **Operations pending for replication**: Total number of operations pending replication from source to destination storage account emitted per the time buckets
204+
- **Bytes pending for replication**: Sum of bytes pending replication from source to destination storage accounts emitted per the time buckets
205+
206+
Each of the metrics above can be viewed with the dimension of time buckets. This enables insights into how many bytes or operations are pending for replication per time buckets as follows:
207+
208+
- 0-5 mins
209+
- 5-10 mins
210+
- 10-15 mins
211+
- 15-30 mins
212+
- 30 mins-2 hrs
213+
- 2-8 hrs
214+
- 8-24 hrs
215+
- `>`24 hrs
216+
217+
You can enable replication metrics on the source account for monitoring pending bytes and pending operations. For more information, see [Configure replication metrics](object-replication-configure.md#configure-replication-metrics).
218+
194219
## Replication status
195220

196221
You can check the replication status for a blob in the source account. For more information, see [Check the replication status of a blob](object-replication-configure.md#check-the-replication-status-of-a-blob).

0 commit comments

Comments
 (0)