diff --git a/test/monitor.js b/test/monitor.js index 103d4ae..5cfc2bf 100644 --- a/test/monitor.js +++ b/test/monitor.js @@ -68,7 +68,7 @@ if (!PUSHGATEWAY_URL) { const protocolLib = pushUrl.protocol === 'https:' ? https : http; const options = { hostname: pushUrl.hostname, - path: pushUrl.pathname + pushUrl.search, + path: `/metrics/job/${encodeURIComponent(TESTNAME)}` method: 'POST', headers: { 'Content-Type': 'text/plain' } };