allow configuring remove write endpoint

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2024-04-15 20:00:14 +02:00
parent cbd2425a5f
commit 688404b6a5
2 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ BASE_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
function _k6 {
local filename="${1}"
K6_PROMETHEUS_RW_SERVER_URL=http://localhost:9090/api/v1/write \
K6_PROMETHEUS_RW_SERVER_URL=${PROMETHEUS_REMOVE_WRITE_ENDPOINT:-http://localhost:9090/api/v1/write} \
K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true \
K6_PROMETHEUS_RW_PUSH_INTERVAL=1s \
k6 run \