Skip to content

Commit

Permalink
Temporary changes to disable prometheus remote write
Browse files Browse the repository at this point in the history
  • Loading branch information
marhode committed Sep 28, 2023
1 parent 13c2fde commit 1bd1d11
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions infrastructure/k6-loadtest/wrapper-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ git clone https://github.com/dBildungsplattform/dbp-load-tests.git
cd dbp-load-tests
git checkout $BRANCH

K6_PROMETHEUS_RW_SERVER_URL=http://servicecenter-vminsert.servicecenterlocal/insert/0/prometheus/ \
K6_PROMETHEUS_RW_USERNAME=$SECRET_USERNAME \
K6_PROMETHEUS_RW_PASSWORD=$SECRET_PASSWORD \
# K6_PROMETHEUS_RW_SERVER_URL=http://servicecenter-vminsert.servicecenterlocal/insert/0/prometheus/ \
# K6_PROMETHEUS_RW_USERNAME=$SECRET_USERNAME \
# K6_PROMETHEUS_RW_PASSWORD=$SECRET_PASSWORD \
k6 "$@"
20 changes: 10 additions & 10 deletions infrastructure/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ spec:
image: {{ $job_options.image }}
imagePullPolicy: Always
env:
- name: SECRET_USERNAME
valueFrom:
secretKeyRef:
name: vminsert-credentials
key: username
- name: SECRET_PASSWORD
valueFrom:
secretKeyRef:
name: vminsert-credentials
key: password
# - name: SECRET_USERNAME
# valueFrom:
# secretKeyRef:
# name: vminsert-credentials
# key: username
# - name: SECRET_PASSWORD
# valueFrom:
# secretKeyRef:
# name: vminsert-credentials
# key: password
- name: OPTIONS_FILE_PATH
value: 300s50u.json
- name: BRANCH
Expand Down
42 changes: 21 additions & 21 deletions infrastructure/values.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
cronjobs:
manager-scenario:
scriptPath: loadtestManager.js
schedule: 0 8 * * *
port: 5656
serviceName: manager-scenario
image: ghcr.io/dbildungsplattform/k6-loadtest:latest
environment: moodle.test.dbildungscloud.org
user-scenario:
scriptPath: loadtestUser.js
schedule: 0 8 * * *
port: 5656
serviceName: user-scenario
image: ghcr.io/dbildungsplattform/k6-loadtest:latest
environment: moodle.test.dbildungscloud.org
browser-scenario:
scriptPath: browserLoadtest.js
schedule: 0 8 * * *
port: 5656
serviceName: browser-scenario
image: ghcr.io/dbildungsplattform/k6-browser-loadtest:latest
cronjobs:
manager-scenario:
scriptPath: loadtestManager.js
schedule: 0 8 * * *
port: 5656
serviceName: manager-scenario
image: ghcr.io/dbildungsplattform/k6-loadtest:latest
environment: moodle.test.dbildungscloud.org
user-scenario:
scriptPath: loadtestUser.js
schedule: 0 8 * * *
port: 5656
serviceName: user-scenario
image: ghcr.io/dbildungsplattform/k6-loadtest:latest
environment: moodle.test.dbildungscloud.org
browser-scenario:
scriptPath: browserLoadtest.js
schedule: 0 8 * * *
port: 5656
serviceName: browser-scenario
image: ghcr.io/dbildungsplattform/k6-browser-loadtest:latest
environment: moodle.test.dbildungscloud.org

0 comments on commit 1bd1d11

Please sign in to comment.