Skip to content

Commit

Permalink
Ingress/egress counters
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Oct 28, 2015
1 parent ad16f10 commit 082c645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/request-proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ RequestProxy.prototype.destroy = function destroy() {
};

RequestProxy.prototype.proxyReq = function proxyReq(opts) {
this.ringpop.stat('increment', 'requestProxy.egress');

var self = this;
var keys = opts.keys;
var dest = opts.dest;
Expand Down Expand Up @@ -191,6 +193,8 @@ RequestProxy.prototype.proxyReq = function proxyReq(opts) {
};

RequestProxy.prototype.handleRequest = function handleRequest(head, body, cb) {
this.ringpop.stat('increment', 'requestProxy.ingress');

var self = this;
var ringpop = this.ringpop;
var url = head.url;
Expand Down

0 comments on commit 082c645

Please sign in to comment.