test/monitor.js aktualisiert
This commit is contained in:
@@ -68,7 +68,7 @@ if (!PUSHGATEWAY_URL) {
|
|||||||
const protocolLib = pushUrl.protocol === 'https:' ? https : http;
|
const protocolLib = pushUrl.protocol === 'https:' ? https : http;
|
||||||
const options = {
|
const options = {
|
||||||
hostname: pushUrl.hostname,
|
hostname: pushUrl.hostname,
|
||||||
path: pushUrl.pathname + pushUrl.search,
|
path: `/metrics/job/${encodeURIComponent(TESTNAME)}`
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'text/plain' }
|
headers: { 'Content-Type': 'text/plain' }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user