Skip to content

Commit 5fd469b

Browse files
namespace tags
1 parent 526a339 commit 5fd469b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/models/datadog/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ function captureSocketCount (req, res, next) {
2727
var key;
2828

2929
for (key in sockets) {
30-
client.gauge('sockets_open', sockets[key].length, ['target:'+key]);
30+
client.gauge('api.sockets_open', sockets[key].length, 1, ['target:'+key]);
3131
}
3232

3333
for (key in request) {
34-
client.gauge('sockets_pending', request[key].length, ['target:'+key]);
34+
client.gauge('api.sockets_pending', request[key].length, 1, ['target:'+key]);
3535
}
3636

3737
exec('lsof -p ' + process.pid + ' | wc -l', function (err, stdout) {
3838
if (err) { return; }
39-
client.gauge('openFiles', parseInt(stdout), ['target:'+key]);
39+
client.gauge('api.openFiles', parseInt(stdout), 1, ['target:'+key]);
4040
});
4141

4242
next();

0 commit comments

Comments
 (0)