Skip to content

Commit e718924

Browse files
committed
get prometheus_endpoint from action output
1 parent bdb4223 commit e718924

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/slo.yml

Lines changed: 8 additions & 7 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:
@@ -177,7 +177,8 @@ jobs:
177177
--job-name "${{ matrix.sdk.name }}"
178178
179179
- name: Initialize YDB SLO
180-
uses: ydb-platform/ydb-slo-action/init@21473ae781c9bc8f16b42dedc79489c1867c6e50
180+
id: ydb_slo
181+
uses: ydb-platform/ydb-slo-action/init@9036ef6c618e0a36c9ef44aef5da767cd3a0db59
181182
with:
182183
github_issue: ${{ github.event.inputs.github_issue }}
183184
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -199,12 +200,12 @@ jobs:
199200
200201
- name: Run SLO Tests (parallel)
201202
timeout-minutes: 15
203+
env:
204+
DURATION: ${{ inputs.slo_workload_duration_seconds || 600 }}
205+
READ_RPS: ${{ inputs.slo_workload_read_max_rps || 1000 }}
206+
WRITE_RPS: ${{ inputs.slo_workload_write_max_rps || 1000 }}
207+
RUN_EXTRA_ARGS: ${{ format('{0} -prometheus-endpoint {1}',matrix.sdk.run_extra_args,steps.ydb_slo.outputs.ydb-prometheus-url)}}
202208
run: |
203-
DURATION=${{ inputs.slo_workload_duration_seconds || 600 }}
204-
READ_RPS=${{ inputs.slo_workload_read_max_rps || 1000 }}
205-
WRITE_RPS=${{ inputs.slo_workload_write_max_rps || 1000 }}
206-
RUN_EXTRA_ARGS="${{ matrix.sdk.run_extra_args }}"
207-
208209
ARGS="run grpc://ydb:2136 /Root/testdb \
209210
-otlp-endpoint prometheus:9090 \
210211
-report-period 250 \

0 commit comments

Comments
 (0)