mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 12:21:03 +00:00
6 lines
221 B
CoffeeScript
6 lines
221 B
CoffeeScript
_ = require('underscore')
|
|
metrics = require('metrics-sharelatex')
|
|
|
|
do trackOpenSockets = ->
|
|
metrics.gauge("http.open-sockets", _.size(require('http').globalAgent.sockets.length), 0.5)
|
|
setTimeout(trackOpenSockets, 1000)
|