From 1613e1e58871bb7ec5ca210e18aa7d8e2784d0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duret?= Date: Mon, 5 May 2025 17:20:05 +0200 Subject: [PATCH] fix(cloud::azure::storage::storagesync): fixed recalls mode by removing deprecated StorageSyncRecallIOTotalSizeBytes metric (#5559) Co-authored-by: Lucie Dubrunfaut <123162035+lucie-dubrunfaut@users.noreply.github.com> Refs: CTOR-1614 --- .../azure/storage/storagesync/mode/filessync.pm | 4 ++++ src/cloud/azure/storage/storagesync/mode/recalls.pm | 12 ++++-------- .../azure/storage/storagesync/mode/serverstatus.pm | 4 ++++ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/cloud/azure/storage/storagesync/mode/filessync.pm b/src/cloud/azure/storage/storagesync/mode/filessync.pm index 19d8b46ce..484b00724 100644 --- a/src/cloud/azure/storage/storagesync/mode/filessync.pm +++ b/src/cloud/azure/storage/storagesync/mode/filessync.pm @@ -144,6 +144,10 @@ Set resource name or ID (required). Set resource group (required if resource's name is used). +=item B<--filter-metric> + +Filter on specific metrics. The Azure format must be used (can be a regexp). + =item B<--warning-*> Warning threshold where '*' can be: diff --git a/src/cloud/azure/storage/storagesync/mode/recalls.pm b/src/cloud/azure/storage/storagesync/mode/recalls.pm index 6d4d645be..a99bf30db 100644 --- a/src/cloud/azure/storage/storagesync/mode/recalls.pm +++ b/src/cloud/azure/storage/storagesync/mode/recalls.pm @@ -53,14 +53,6 @@ sub get_metrics_mapping { 'min' => '0', 'max' => '' }, - 'storagesyncrecalliototalsizebytes' => { - 'output' => 'Cloud tiering recall', - 'label' => 'total-recalls-size', - 'nlabel' => 'storagesync.recalls.total.size.bytes', - 'unit' => 'B', - 'min' => '0', - 'max' => '' - }, 'storagesyncrecallthroughputbytespersecond' => { 'output' => 'Cloud tiering recall throughput', 'label' => 'throughput-recalls-size', @@ -160,6 +152,10 @@ Set resource name or ID (required). Set resource group (required if resource's name is used). +=item B<--filter-metric> + +Filter on specific metrics. The Azure format must be used (can be a regexp). + =item B<--warning-*> Warning threshold where '*' can be: diff --git a/src/cloud/azure/storage/storagesync/mode/serverstatus.pm b/src/cloud/azure/storage/storagesync/mode/serverstatus.pm index bb4e813a0..59b5650ed 100644 --- a/src/cloud/azure/storage/storagesync/mode/serverstatus.pm +++ b/src/cloud/azure/storage/storagesync/mode/serverstatus.pm @@ -128,6 +128,10 @@ Set resource name or ID (required). Set resource group (required if resource's name is used). +=item B<--filter-metric> + +Filter on specific metrics. The Azure format must be used (can be a regexp). + =item B<--warning-heartbeat> Warning threshold.