- Added Prometheus gauges for CPU and memory metrics. - Implemented HTTP server to expose metrics at /metrics endpoint. - Created methods to enable and disable the Prometheus endpoint. - Updated getMetrics() to set gauge values. - Added tests for Prometheus metrics functionality. - Updated documentation plan for Prometheus integration.
21 lines
483 B
TypeScript
21 lines
483 B
TypeScript
// node native
|
|
import * as v8 from 'v8';
|
|
import * as os from 'os';
|
|
import * as fs from 'fs';
|
|
import * as http from 'http';
|
|
|
|
export { v8, os, fs, http };
|
|
|
|
// pushrocks scope
|
|
import * as smartdelay from '@push.rocks/smartdelay';
|
|
import * as smartlog from '@push.rocks/smartlog';
|
|
|
|
export { smartdelay, smartlog };
|
|
|
|
// third party scope
|
|
import pidusage from 'pidusage';
|
|
import pidtree from 'pidtree';
|
|
import * as promClient from 'prom-client';
|
|
|
|
export { pidusage, pidtree, promClient };
|