From a87a3fb766dff01818acbd2fcbc665723c668ca0 Mon Sep 17 00:00:00 2001 From: Santosh Date: Tue, 2 Dec 2025 12:14:35 +0530 Subject: [PATCH] rgw: update scaledObject resource Update ScaledObject Resource to use correct metric. ceph_rgw_put is not availabe. Using ceph_rgw_op_put_obj_ops instead. Signed-off-by: Santosh --- .../Storage-Configuration/Monitoring/ceph-monitoring.md | 9 +++++---- deploy/examples/monitoring/keda-rgw.yaml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/Storage-Configuration/Monitoring/ceph-monitoring.md b/Documentation/Storage-Configuration/Monitoring/ceph-monitoring.md index cbac5ec7c..f800ad2e1 100644 --- a/Documentation/Storage-Configuration/Monitoring/ceph-monitoring.md +++ b/Documentation/Storage-Configuration/Monitoring/ceph-monitoring.md @@ -321,17 +321,18 @@ metadata: namespace: rook-ceph spec: scaleTargetRef: - kind: Deployment - name: rook-ceph-rgw-my-store-a # deployment for the autoscaling + apiVersion: ceph.rook.io/v1 + kind: CephObjectStore + name: my-store # name of the cephObjectStore resource minReplicaCount: 1 maxReplicaCount: 5 triggers: - type: prometheus metadata: serverAddress: http://rook-prometheus.rook-ceph.svc:9090 - metricName: collecting_ceph_rgw_put + metricName: ceph_rgw_put_collector query: | - sum(rate(ceph_rgw_put[2m])) # prometheus query used for autoscaling + sum(rate(ceph_rgw_op_put_obj_ops[2m])) # prometheus query used for autoscaling threshold: "90" ``` diff --git a/deploy/examples/monitoring/keda-rgw.yaml b/deploy/examples/monitoring/keda-rgw.yaml index 42d9e85e8..264a8a8bb 100644 --- a/deploy/examples/monitoring/keda-rgw.yaml +++ b/deploy/examples/monitoring/keda-rgw.yaml @@ -16,5 +16,5 @@ spec: serverAddress: http://rook-prometheus.rook-ceph.svc:9090 metricName: ceph_rgw_put_collector query: | - sum(rate(ceph_rgw_put[2m])) + sum(rate(ceph_rgw_op_put_obj_ops[2m])) threshold: "90"