forked from rook/rook
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 <sapillai@redhat.com>
21 lines
530 B
YAML
21 lines
530 B
YAML
apiVersion: keda.sh/v1alpha1
|
|
kind: ScaledObject
|
|
metadata:
|
|
name: rgw-scale
|
|
namespace: rook-ceph
|
|
spec:
|
|
scaleTargetRef:
|
|
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: ceph_rgw_put_collector
|
|
query: |
|
|
sum(rate(ceph_rgw_op_put_obj_ops[2m]))
|
|
threshold: "90"
|