move most of the logic of IOSocketController into a dedicated class
This commit is contained in:
parent
1abae077a3
commit
e6bd655527
7 changed files with 713 additions and 735 deletions
|
@ -5,7 +5,7 @@ const register = require('prom-client').register;
|
|||
const collectDefaultMetrics = require('prom-client').collectDefaultMetrics;
|
||||
|
||||
export class PrometheusController {
|
||||
constructor(private App: App, private ioSocketController: IoSocketController) {
|
||||
constructor(private App: App) {
|
||||
collectDefaultMetrics({
|
||||
timeout: 10000,
|
||||
gcDurationBuckets: [0.001, 0.01, 0.1, 1, 2, 5], // These are the default buckets.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue