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
|**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
+
26
33
### Supported metrics for Microsoft.Storage/storageAccounts/blobServices
27
34
The following table lists the metrics available for the Microsoft.Storage/storageAccounts/blobServices resource type.
@@ -307,6 +307,48 @@ az storage account or-policy create \
307
307
308
308
---
309
309
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:
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
+
310
352
## Check the replication status of a blob
311
353
312
354
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.
Copy file name to clipboardExpand all lines: articles/storage/blobs/object-replication-overview.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ author: normesta
6
6
7
7
ms.service: azure-blob-storage
8
8
ms.topic: conceptual
9
-
ms.date: 12/08/2023
10
-
ms.author: nachakra
9
+
ms.date: 02/27/2025
10
+
ms.author: normesta
11
11
ms.custom: engagement-fy23
12
12
---
13
13
@@ -191,6 +191,31 @@ By default, the **AllowCrossTenantReplication** property is set to false for a s
191
191
192
192
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*.
193
193
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
+
194
219
## Replication status
195
220
196
221
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