agents / Exports / NodeSystemMetricsCollector
Class: NodeSystemMetricsCollector
Node.js system metrics collector
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new NodeSystemMetricsCollector(): NodeSystemMetricsCollector
Returns
Defined in
packages/agents/src/plugins/performance/collectors/system-metrics-collector.ts:10
Methods
getMemoryUsage
▸ getMemoryUsage(): Promise<undefined | { used: number ; free: number ; total: number ; heap: { used: number ; total: number } }>
Returns
Promise<undefined | { used: number ; free: number ; total: number ; heap: { used: number ; total: number } }>
Implementation of
SystemMetricsCollector.getMemoryUsage
Defined in
packages/agents/src/plugins/performance/collectors/system-metrics-collector.ts:14
getCPUUsage
▸ getCPUUsage(): Promise<undefined | { user: number ; system: number ; percent: number }>
Returns
Promise<undefined | { user: number ; system: number ; percent: number }>
Implementation of
SystemMetricsCollector.getCPUUsage
Defined in
packages/agents/src/plugins/performance/collectors/system-metrics-collector.ts:37
getNetworkStats
▸ getNetworkStats(): Promise<undefined | { requests: number ; bytesReceived: number ; bytesSent: number ; latency: number }>
Returns
Promise<undefined | { requests: number ; bytesReceived: number ; bytesSent: number ; latency: number }>
Implementation of
SystemMetricsCollector.getNetworkStats
Defined in
packages/agents/src/plugins/performance/collectors/system-metrics-collector.ts:56