mirror of https://github.com/node-red/node-red.git
Rename HTTP In content-length metric
parent
f2d4648384
commit
c8d2d690f0
|
@ -88,7 +88,7 @@ module.exports = function(RED) {
|
||||||
var metricContentLength = res._headers["content-length"];
|
var metricContentLength = res._headers["content-length"];
|
||||||
//assuming that _id has been set for res._metrics in HttpOut node!
|
//assuming that _id has been set for res._metrics in HttpOut node!
|
||||||
node.metric("response.time.millis", {_id:res._msgId} , metricResponseTime);
|
node.metric("response.time.millis", {_id:res._msgId} , metricResponseTime);
|
||||||
node.metric("response.content.length.bytes", {_id:res._msgId} , metricContentLength);
|
node.metric("response.content-length.bytes", {_id:res._msgId} , metricContentLength);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
next();
|
next();
|
||||||
|
|
Loading…
Reference in New Issue