Skip to content

Commit

Permalink
fix auto scale (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
guysegal authored Jul 26, 2023
1 parent f509ba5 commit 5d0f32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dafka-producer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm Chart for Dafka Producer
name: dafka-producer
version: 7.2.5
version: 7.2.6
2 changes: 1 addition & 1 deletion charts/dafka-producer/templates/keda-scaled-object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ spec:
metricName: produce_success_{{ .Release.Name }}
threshold: {{ .Values.kedaScaledObject.prometheus.value | default 50 | squote }}
activationThreshold: {{ .Values.kedaScaledObject.prometheus.activationThreshold | default 5 | squote }}
query: sum(rate(produce_success{job="{{ .Release.Name }}-{{ .Values.name }}"}[2m]))
query: sum(rate(producer_success_total{job="{{ .Release.Name }}-{{ .Values.name }}"}[2m]))
{{ end }}
{{- end }}

0 comments on commit 5d0f32a

Please sign in to comment.