diff --git a/charts/trino/README.md b/charts/trino/README.md index bc234e1b..f21afdbb 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -158,10 +158,10 @@ Fast distributed SQL query engine for big data analytics that helps you explore metadata: serverAddress: "http://prometheus.example.com" threshold: "1" - metricName: running_queries + metricName: required_workers query: >- sum by (service) - (avg_over_time(trino_execution_resourcegroups_InternalResourceGroup_RunningQueries{service={{ include "trino.fullname" . | quote }}}[5s])) + (avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{service={{ include "trino.fullname" . | quote }}}[5s])) ``` * `server.keda.annotations` - object, default: `{}` diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 705ec922..865823fb 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -163,10 +163,10 @@ server: # metadata: # serverAddress: "http://prometheus.example.com" # threshold: "1" - # metricName: running_queries + # metricName: required_workers # query: >- # sum by (service) - # (avg_over_time(trino_execution_resourcegroups_InternalResourceGroup_RunningQueries{service={{ include "trino.fullname" . | quote }}}[5s])) + # (avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{service={{ include "trino.fullname" . | quote }}}[5s])) # ``` annotations: {} # server.keda.annotations -- Annotations to apply to the ScaledObject CRD. diff --git a/tests/trino/test-values.yaml b/tests/trino/test-values.yaml index 6c63f396..de668442 100644 --- a/tests/trino/test-values.yaml +++ b/tests/trino/test-values.yaml @@ -27,7 +27,7 @@ server: metadata: serverAddress: http://prometheus-operator-kube-p-prometheus.{{ .Release.Namespace }}:9090 threshold: "1" - metricName: running_queries + metricName: required_workers query: >- sum by (service) (avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{service={{ include "trino.fullname" . | quote }}}[5s]))