Skip to content

Commit 625db2b

Browse files
committed
get prometheus_endpoint from action output
1 parent 4abccb8 commit 625db2b

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/slo.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
name: native-node-hints
8282
path: ./native/node_hints
8383
label: native/node_hints
84-
run_extra_args: '-prometheus-endpoint http://172.28.0.2:9090 -batch-size=10'
84+
run_extra_args: '-batch-size=10'
8585
create_extra_args: '-min-partitions-count 10'
8686

8787
concurrency:
@@ -229,12 +229,21 @@ jobs:
229229
230230
- name: Run SLO Tests (parallel)
231231
timeout-minutes: 15
232+
env:
233+
DURATION: ${{ inputs.slo_workload_duration_seconds || 600 }}
234+
READ_RPS: ${{ inputs.slo_workload_read_max_rps || 1000 }}
235+
WRITE_RPS: ${{ inputs.slo_workload_write_max_rps || 1000 }}
236+
RUN_EXTRA_ARGS: >-
237+
${{
238+
steps.ydb_slo.outputs.prometheus_endpoint
239+
&& format(
240+
'{0} -prometheus-endpoint {1}',
241+
matrix.sdk.run_extra_args,
242+
steps.ydb_slo.outputs.prometheus_endpoint
243+
)
244+
|| matrix.sdk.run_extra_args
245+
}}
232246
run: |
233-
DURATION=${{ inputs.slo_workload_duration_seconds || 600 }}
234-
READ_RPS=${{ inputs.slo_workload_read_max_rps || 1000 }}
235-
WRITE_RPS=${{ inputs.slo_workload_write_max_rps || 1000 }}
236-
RUN_EXTRA_ARGS="${{ matrix.sdk.run_extra_args }}"
237-
238247
ARGS="run grpc://ydb:2136 /Root/testdb \
239248
-otlp-endpoint prometheus:9090 \
240249
-report-period 250 \

0 commit comments

Comments
 (0)