Skip to content

Commit

Permalink
Add env var for monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Aug 1, 2023
1 parent 91a0899 commit 03f4da6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
8 changes: 6 additions & 2 deletions osm-seed/templates/jobs/replication-monitoring-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ spec:
value: {{ .Values.db.env.POSTGRES_USER }}
- name: CLOUDPROVIDER
value: {{ .Values.cloudProvider }}
- name: OVERWRITE_PLANET_FILE
value: {{ .Values.monitoringReplication.env.OVERWRITE_PLANET_FILE | quote}}
- name: REPLICATION_FOLDER
value: replication/minute
- name: CREATE_MISSING_FILES
value: {{ .Values.monitoringReplication.env.CREATE_MISSING_FILES }}
- name: REPLICATION_SEQUENCE_NUMBER
value: {{ .Values.monitoringReplication.env.REPLICATION_SEQUENCE_NUMBER }}
# In case cloudProvider=aws
{{- if eq .Values.cloudProvider "aws" }}
- name: AWS_S3_BUCKET
Expand Down
23 changes: 23 additions & 0 deletions osm-seed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,26 @@ osmSimpleMetrics:
cpu: '2'
nodeSelector:
enabled: false

# ====================================================================================================
# Variables for osm-simple-metrics
# ====================================================================================================
monitoringReplication:
enabled: false
image:
name: ''
tag: ''
schedule: '* */1 * * *'
env:
CREATE_MISSING_FILES: empty
REPLICATION_SEQUENCE_NUMBER: "109789"
resources:
enabled: false
requests:
memory: '1Gi'
cpu: '2'
limits:
memory: '2Gi'
cpu: '2'
nodeSelector:
enabled: false

0 comments on commit 03f4da6

Please sign in to comment.