Skip to content

Commit

Permalink
modify config, add prometheus server address
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Sep 17, 2024
1 parent d9dd9e7 commit 1710755
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .rhcicd/clowdapp-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,29 @@ objects:
- name: PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR
value: ${PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR}
autoScaler:
minReplicaCount: 3
minReplicaCount: ${{MIN_REPLICAS}}
maxReplicaCount: 6
triggers:
- metadata:
query: sum(kafka_consumergroup_group_lag{topic=~".*platform.notifications.ingress", group="integrations"})
threshold: "1000"
serverAddress: http://prometheus-app-sre.openshift-customer-monitoring.svc.cluster.local:9090
query: kafka_consumergroup_group_topic_sum_lag{topic=~".*platform.notifications.ingress"}
threshold: "25"
type: prometheus
metricType: Value
advanced:
horizontalPodAutoscalerConfig:
behavior:
scaleDown:
stabilizationWindowSeconds: 180
policies:
- type: Pods
value: 2
periodSeconds: 60
scaleUp:
policies:
- type: Pods
value: 2
periodSeconds: 30
parameters:
- name: CLOUDWATCH_ENABLED
description: Enable Cloudwatch (or not)
Expand Down

0 comments on commit 1710755

Please sign in to comment.