Single-node performance monitoring and system health utilities for WayrApp backend.
This module provides comprehensive performance tracking, system health monitoring, and database
query optimization capabilities for the WayrApp language learning platform. It serves as the
central observability layer, automatically tracking HTTP request metrics, monitoring system
resources, and providing actionable performance recommendations. The module integrates seamlessly
with Express middleware for automatic request tracking and exposes health check endpoints for
container orchestration and monitoring systems.
Key architectural components include real-time request performance tracking, system resource
monitoring (memory, CPU, uptime), database connectivity health checks, cache performance
analysis, and intelligent query optimization suggestions. The module supports both development
debugging and production monitoring scenarios, with Prometheus-compatible metrics export for
integration with monitoring infrastructure.
// System health monitoring for container orchestration import { healthChecks } from'@/shared/utils/performance';
// Check overall system health (Kubernetes readiness probe) constsystemHealth = awaithealthChecks.system(); if (systemHealth.status === 'healthy') { console.log('All systems operational'); }
Single-node performance monitoring and system health utilities for WayrApp backend.
This module provides comprehensive performance tracking, system health monitoring, and database query optimization capabilities for the WayrApp language learning platform. It serves as the central observability layer, automatically tracking HTTP request metrics, monitoring system resources, and providing actionable performance recommendations. The module integrates seamlessly with Express middleware for automatic request tracking and exposes health check endpoints for container orchestration and monitoring systems.
Key architectural components include real-time request performance tracking, system resource monitoring (memory, CPU, uptime), database connectivity health checks, cache performance analysis, and intelligent query optimization suggestions. The module supports both development debugging and production monitoring scenarios, with Prometheus-compatible metrics export for integration with monitoring infrastructure.
Author
Exequiel Trujillo
Since
1.0.0
Example
Example
Example
Example