fix(core): update

This commit is contained in:
2021-08-19 17:29:15 +02:00
parent 69af53a30a
commit 0292d9bc13
4 changed files with 18 additions and 42 deletions

View File

@ -74,7 +74,6 @@ export class SmartMetrics {
console.log(`${cpuUsageText} ||| ${memoryUsageText} `);
const returnMetrics: interfaces.IMetricsSnapshot = {
originalMetrics,
process_cpu_seconds_total: (
originalMetrics.find((metricSet) => metricSet.name === 'process_cpu_seconds_total') as any
).values[0].value,

View File

@ -1,6 +1,5 @@
// this might be extracted into a package @pushrocks/smartmetrics-interfaces in the future
export interface IMetricsSnapshot {
originalMetrics: any[];
process_cpu_seconds_total: number;
nodejs_active_handles_total: number;
nodejs_active_requests_total: number;