Interface: NodeStats
Lavalink periodically sends detailed statistics about the node's performance and resource usage.
These stats are crucial for monitoring system load, audio frame issues, and overall node health.
NodeStats
Main structure containing node-wide statistics.
Property Type Description Optional playersnumber Number of connected players (active + idle). playingPlayersnumber Number of currently playing players. uptimenumber Node uptime in milliseconds. memoryMemoryStatsMemory usage statistics. cpuCPUStatsCPU usage statistics. frameStatsFrameStats| nullFrame loss and timing information (may be null if disabled).
MemoryStats
Breakdown of the node’s memory usage.
Property Type Description Optional freenumber Amount of free memory (in bytes). usednumber Amount of used memory (in bytes). allocatednumber Total memory allocated to the Lavalink process (in bytes). reservablenumber Maximum memory that can be allocated (in bytes).
CPUStats
Stats related to CPU usage on the node.
Property Type Description Optional coresnumber Number of logical CPU cores available. systemLoadnumber Total system CPU load (0.0 to 1.0). lavalinkLoadnumber Load attributed specifically to the Lavalink process.
FrameStats
Audio frame performance and quality metrics.
Property Type Description Optional sentnumber Number of audio frames sent. nullednumber Number of audio frames that were replaced with silence. deficitnumber Number of audio frames that were lost or late.