From 1673e897263e6eddf33e8340daeae616f145c2d0 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sun, 5 Nov 2023 20:34:45 +0100 Subject: [PATCH] Update qryn-loadtest.js --- qryn-loadtest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qryn-loadtest.js b/qryn-loadtest.js index 99b86fc..dcba70a 100644 --- a/qryn-loadtest.js +++ b/qryn-loadtest.js @@ -111,7 +111,7 @@ get_read_authentication_headers().forEach((value, key) => { }) const query_client = new Httpx({ - baseURL: `${SCHEME}://${READ_HOSTNAME}/prometheus/api/v1`, + baseURL: `${SCHEME}://${READ_HOSTNAME}/api/v1`, headers: query_client_headers, timeout: 120e3 // 120s timeout. }); @@ -527,7 +527,7 @@ export function run_range_query() { console.debug("range query - time_range:", time_range, "start:", start, "end:", end, "step:", step, "query:", query) describe(name, () => { - const res = query_client.post('/api/v1/query_range', { + const res = query_client.post('/query_range', { query: query, start: start, end: end, @@ -574,7 +574,7 @@ export function run_instant_query(name, config) { console.debug(name, " - query: ", query) describe(name, () => { - const res = query_client.post('/api/v1/query', { + const res = query_client.post('/query', { query: query, time: time, }, {