mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 18:50:19 -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)
|