mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05: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)
|