diff --git a/package-lock.json b/package-lock.json index 1c74adc..92f8769 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "osrs-tracker-api", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index dd08751..caea95f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "osrs-tracker-api", - "version": "0.3.0", + "version": "0.3.1", "private": true, "author": "Freek Mencke", "homepage": "https://twitter.com/FreekMencke", diff --git a/src/main.ts b/src/main.ts index 4905a0f..c9fb7ad 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,6 +2,7 @@ import cluster from 'cluster'; import * as express from 'express'; import { clusterMetrics } from 'express-prom-bundle'; import os from 'os'; +import { collectDefaultMetrics } from 'prom-client'; import { App } from './app/app'; import { Logger } from './app/common/logger'; import { FileSystemUtils } from './app/common/utils/file-system-utils'; @@ -22,5 +23,7 @@ if (cluster.isMaster) { cluster.fork(); }); } else { + collectDefaultMetrics(); + App.run(cluster.worker); }